tinyfecVPN
tinyfecVPN copied to clipboard
ping 一会就断掉
Server ./tinyfecvpn -s -l0.0.0.0:162 -f20:10 -k "a#F5^f" --sub-net 10.22.22.0 --tun-dev tinyfecvpn
[2018-01-26 00:14:59][INFO]argc=10 ./tinyfecvpn -s -l0.0.0.0:162 -f20:10 -k a#F5^f --sub-net 10.22.22.0 --tun-dev tinyfecvpn [2018-01-26 00:14:59][INFO]sub_net 10.22.22.0 [2018-01-26 00:14:59][INFO]tun_dev=tinyfecvpn [2018-01-26 00:14:59][INFO]running at tun-dev mode [2018-01-26 00:14:59][INFO]jitter_min=0 jitter_max=0 output_interval_min=0 output_interval_max=0 fec_timeout=8 fec_data_num=20 fec_redundant_num=10 fec_mtu=1250 fec_queue_len=200 fec_mode=0 [2018-01-26 00:14:59][INFO]using interface tinyfecvpn [2018-01-26 00:16:20][INFO]new connection from 119.129.96.161:33558 [2018-01-26 00:17:13][INFO]new connection from 119.129.96.161:52627
Client ./tinyfecvpn -c -rxxxxxxxxxx:162 -f20:10 -k "a#F5^f" --sub-net 10.22.22.0 --tun-dev tinyfecvpn
[2018-01-25 16:17:04][INFO]argc=10 ./tinyfecvpn -c -rxxxxxxxxxxx:162 -f20:10 -k a#F5^f --sub-net 10.22.22.0 --tun-dev tinyfecvpn [2018-01-25 16:17:04][INFO]sub_net 10.22.22.0 [2018-01-25 16:17:04][INFO]tun_dev=tinyfecvpn [2018-01-25 16:17:04][INFO]running at tun-dev mode [2018-01-25 16:17:04][INFO]jitter_min=0 jitter_max=0 output_interval_min=0 output_interval_max=0 fec_timeout=8 fec_data_num=20 fec_redundant_num=10 fec_mtu=1250 fec_queue_len=200 fec_mode=0 [2018-01-25 16:17:04][INFO]using interface tinyfecvpn [2018-01-25 16:17:13][INFO]connection accepted by server [2018-01-25 16:17:17][FATAL]server restarted or switched to handle another client,exited
我启动 server, client,在 client 端只做了 ping 10.22.22.1 这一个操作
ping 显示几条信息之后,client 就会 FATAL 断开, 断开是 client 退出了,必须重新运行 client 才能继续 ping,然后一样 显示几条信息之后 client 又会再次 FATAL
不知道这是什么原因?
[2018-01-26 00:16:20][INFO]new connection from 119.129.96.161:33558 [2018-01-26 00:17:13][INFO]new connection from 119.129.96.161:52627
从log看,你的server收到了2个连接。
[2018-01-25 16:17:17][FATAL]server restarted or switched to handle another client,exited
可能的情况有两种:
-
你有多个client在同时尝试连接server。 后一个连接的把前一个挤掉了。这种情况必须把多余的client杀掉。
-
你的udp连接不稳定,连上一会儿,连接就被运营商掐断了。这种情况可以在client端用
--keep-reconnect
,在短线后自动重连。 根本的解决办法是加个udp2raw,防止udp被运营商掐断。