dndx / phantun

Transforms UDP stream into (fake) TCP streams that can go through Layer 3 & Layer 4 (NAPT) firewalls/NATs.
Apache License 2.0
1.71k stars 137 forks source link

连接几个小时后卡死,需要增加类似udp2raw的在线重连机制 #87

Closed YaoFei509 closed 2 years ago

YaoFei509 commented 2 years ago

也许是保持TCP连接太长时间导致被运营商QoS了?现象就是WG断了,客户端和服务器端的phantun却没有报链接中断,然后甚至VPS 都无法ssh上去(却能ping到)

改进建议: 1、log最好能用journalctl看到 2、及时发现TCP链接中断(服务端似乎有180s检测时间?没起作用) 3、提供手段从外部强制重新建立链接(类似udp2raw的--fifo ,便于定时重新链接,make 运营商 happy 4、UDP数据报内容适当加扰,免得被识别出WG特征

使用环境: WG: RouterOS 7.6 Client: Ubuntu 22.04 on ARMv7 ( Armbian 22.08.8 Jammy with bleeding edge Linux 5.19.16-sunxi , 全志H3 ) VPS: Ubuntu 20.04.5 LTS (GNU/Linux 5.4.0-131-generic x86_64)

dndx commented 2 years ago

English only please.