wangyu- / udp2raw

A Tunnel which Turns UDP Traffic into Encrypted UDP/FakeTCP/ICMP Traffic by using Raw Socket,helps you Bypass UDP FireWalls(or Unstable UDP Environment)
MIT License
7.16k stars 1.16k forks source link

heart beat sent cipher_decrypt failed recv_safer failed #498

Open lexavey opened 10 months ago

lexavey commented 10 months ago

English Only.

when run command in server udp2raw_x86 -s -l 0.0.0.0:4096 -r 127.0.0.1:51820 --log-level 5 -a and client : ./udp2raw_arm -c -l 127.0.0.1:51820 -r 11.22.33.44:4096 -a --log-level 5

[2023-11-13 07:58:32][DEBUG]heart beat sent<f653c2da,2c3fca93>
[2023-11-13 07:58:32][DEBUG]cipher_decrypt failed
[2023-11-13 07:58:32][DEBUG]recv_safer failed!
[2023-11-13 07:58:33][DEBUG][38.9.140.224:43514][hb]received hb
[2023-11-13 07:58:33][DEBUG]heart beat sent<f653c2da,2c3fca93>
[2023-11-13 07:58:33][DEBUG]cipher_decrypt failed
[2023-11-13 07:58:33][DEBUG]recv_safer failed!
[2023-11-13 07:58:34][DEBUG][38.9.140.224:43514][hb]received hb
[2023-11-13 07:58:34][DEBUG]heart beat sent<f653c2da,2c3fca93>
[2023-11-13 07:58:34][DEBUG]cipher_decrypt failed
[2023-11-13 07:58:34][DEBUG]recv_safer failed!
[2023-11-13 07:58:34][DEBUG]heart beat sent<f653c2da,2c3fca93>
[2023-11-13 07:58:34][DEBUG]cipher_decrypt failed
[2023-11-13 07:58:34][DEBUG]recv_safer failed!

Run with :

udp2raw -s -l 0.0.0.0:4096 -r 127.0.0.1:51820 -k "123" --cipher-mode "none" --auth-mode "none" --raw-mode faketcp -a --log-level 5
[2023-11-13 08:05:29][DEBUG]recv_safer failed!
[2023-11-13 08:05:30][DEBUG]heart beat sent<d67f8a9a,531f09cf>
[2023-11-13 08:05:30][DEBUG]len <0 ,-18
[2023-11-13 08:05:30][DEBUG]recv_safer failed!
[2023-11-13 08:05:30][DEBUG]heart beat sent<d67f8a9a,531f09cf>
[2023-11-13 08:05:30][DEBUG]len <0 ,-18
[2023-11-13 08:05:30][DEBUG]recv_safer failed!
[2023-11-13 08:05:31][DEBUG]heart beat sent<d67f8a9a,531f09cf>
[2023-11-13 08:05:31][DEBUG]len <0 ,-18
[2023-11-13 08:05:31][DEBUG]recv_safer failed!
[2023-11-13 08:05:32][DEBUG]heart beat sent<d67f8a9a,531f09cf>
[2023-11-13 08:05:32][DEBUG]len <0 ,-18
[2023-11-13 08:05:32][DEBUG]recv_safer failed!
[2023-11-13 08:05:33][DEBUG]heart beat sent<d67f8a9a,531f09cf>
[2023-11-13 08:05:33][DEBUG]len <0 ,-18
[2023-11-13 08:05:33][DEBUG]recv_safer failed!

what this log mean ?

wangyu- commented 10 months ago

List to check:

  1. client server are in same version
  2. the password are same
  3. cipher and auth mode are same
  4. there are no transparent proxy between client and server

If they are all correct, then maybe your VPS or ISP doesn't allow raw socket's packet to passthrough correctly.