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

10秒重新握手 #430

Closed MoriMeina closed 9 months ago

MoriMeina commented 2 years ago

[2022-04-14 05:34:26][INFO]state back to client_idle from client_ready bc of client-->server direction timeout [2022-04-14 05:34:26][INFO]source_addr is now 10.1.0.206 [2022-04-14 05:34:26][INFO]using port 31901 [2022-04-14 05:34:26][INFO]filter expression is [ip and tcp and src 18.181.81.XX and src port 7341 and dst port 31901] [2022-04-14 05:34:26][INFO]breakloop() succeed after 1 attempt(s) [2022-04-14 05:34:26][INFO]state changed from client_idle to client_tcp_handshake [2022-04-14 05:34:26]INFOsent tcp syn [2022-04-14 05:34:27][INFO]state changed from client_tcp_handshake to client_handshake1 [2022-04-14 05:34:27]INFOsent handshake1 [2022-04-14 05:34:27][INFO]changed state from to client_handshake1 to client_handshake2,my_id is 9e618391,oppsite id is 4a78302e [2022-04-14 05:34:27]INFOsent handshake2 [2022-04-14 05:34:27][INFO]changed state from to client_handshake2 to client_ready [2022-04-14 05:34:39][INFO]state back to client_idle from client_ready bc of client-->server direction timeout [2022-04-14 05:34:40][INFO]source_addr is now 10.1.0.206 [2022-04-14 05:34:40][INFO]using port 32875 [2022-04-14 05:34:40][INFO]filter expression is [ip and tcp and src 18.181.81.XX and src port 7341 and dst port 32875] [2022-04-14 05:34:40][INFO]breakloop() succeed after 1 attempt(s) [2022-04-14 05:34:40][INFO]state changed from client_idle to client_tcp_handshake [2022-04-14 05:34:40]INFOsent tcp syn [2022-04-14 05:34:41][INFO]state changed from client_tcp_handshake to client_handshake1 [2022-04-14 05:34:41]INFOsent handshake1 [2022-04-14 05:34:41][INFO]changed state from to client_handshake1 to client_handshake2,my_id is d7a7c097,oppsite id is 2997c3e1 [2022-04-14 05:34:41]INFOsent handshake2 [2022-04-14 05:34:41][INFO]changed state from to client_handshake2 to client_ready 握手成功之后进入双ready,客户端10秒左右报超时,然后IDLE重新握手。不知道到底是bug还是什么。服务端显示的是 [2022-04-14 04:34:31][INFO][8.37.43.55:16958]grabbed a connection [2022-04-14 04:34:42][INFO][8.37.43.55:16958]inactive conn cleared [2022-04-14 04:34:43][INFO][8.37.43.55:17272]received syn,sent syn ack back [2022-04-14 04:34:44][INFO][8.37.43.55:17272]got packet from a new ip [2022-04-14 04:34:44][INFO][8.37.43.55:17272]created new conn,state: server_handshake1,my_id is 7bcae05a [2022-04-14 04:34:44][INFO][8.37.43.55:17272]changed state to server_handshake1,my_id is 7bcae05a [2022-04-14 04:34:44][INFO][8.37.43.55:17272]received handshake oppsite_id:abb9db61 my_id:7bcae05a [2022-04-14 04:34:44][INFO][8.37.43.55:17272]oppsite const_id:226112ad [2022-04-14 04:34:44][INFO][8.37.43.55:17272]grabbed a connection [2022-04-14 04:34:56][INFO][8.37.43.55:17272]inactive conn cleared [2022-04-14 04:34:57][INFO][8.37.43.20:31901]received syn,sent syn ack back [2022-04-14 04:34:58][INFO][8.37.43.20:31901]got packet from a new ip [2022-04-14 04:34:58][INFO][8.37.43.20:31901]created new conn,state: server_handshake1,my_id is 4a78302e 但是两次的client ip不一致,或许跟我的双出口负载均衡有关?

MoriMeina commented 2 years ago

[2022-04-14 04:41:09][INFO][8.37.43.55:32095]oppsite const_id:521cd37f [2022-04-14 04:41:09][INFO][8.37.43.55:32095]changed state to server_ready [2022-04-14 04:41:21][INFO][8.37.43.55:26932]received syn,sent syn ack back [2022-04-14 04:41:22][INFO][8.37.43.55:26932]got packet from a new ip [2022-04-14 04:41:22][INFO][8.37.43.55:26932]created new conn,state: server_handshake1,my_id is b6468e5e [2022-04-14 04:41:22][INFO][8.37.43.55:26932]changed state to server_handshake1,my_id is b6468e5e [2022-04-14 04:41:23][INFO][8.37.43.55:26932]received handshake oppsite_id:24047278 my_id:b6468e5e [2022-04-14 04:41:23][INFO][8.37.43.55:26932]oppsite const_id:521cd37f [2022-04-14 04:41:23][INFO][8.37.43.55:26932]grabbed a connection [2022-04-14 04:41:35][INFO][8.37.43.55:63837]received syn,sent syn ack back [2022-04-14 04:41:36][INFO][8.37.43.55:26932]inactive conn cleared [2022-04-14 04:41:36][INFO][8.37.43.55:63837]got packet from a new ip [2022-04-14 04:41:36][INFO][8.37.43.55:63837]created new conn,state: server_handshake1,my_id is 5ffb8d3f [2022-04-14 04:41:36][INFO][8.37.43.55:63837]changed state to server_handshake1,my_id is 5ffb8d3f [2022-04-14 04:41:36][INFO][8.37.43.55:63837]received handshake oppsite_id:a2331de1 my_id:5ffb8d3f [2022-04-14 04:41:36][INFO][8.37.43.55:63837]oppsite const_id:521cd37f [2022-04-14 04:41:36][INFO][8.37.43.55:63837]grabbed a connection 单出口也是一样10秒重新握手