wangyu- / tinyfecVPN

A VPN Designed for Lossy Links, with Build-in Forward Error Correction(FEC) Support. Improves your Network Quality on a High-latency Lossy Link.
MIT License
2.33k stars 459 forks source link

10.22.22.1 ping不通 #57

Open chaosye0 opened 6 years ago

chaosye0 commented 6 years ago

电脑用大佬你给的镜像开的虚拟机, 用以下代码开启tinyvpn, 但是得到的10.22.22.1 ping不通.

输出如下: 在服务端 [root@707 tinyvpn]# ./tinyvpn_x86 -s -l 0.0.0.0:4096 -f20:10 --sub-net 10.22.22.0 [2018-08-08 16:39:23][INFO]argc=7 ./tinyvpn_x86 -s -l 0.0.0.0:4096 -f20:10 --sub-net 10.22.22.0 [2018-08-08 16:39:23][INFO]sub_net 10.22.22.0 [2018-08-08 16:39:23][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-08-08 16:39:23][INFO]using interface tun133 [2018-08-08 16:40:07][INFO]new connection from 124.160.153.164:2171

客户端 root@LEDE:~/tinyvpn# ./tinyvpn_x86 -c -r (服务器ip):4096 -f20:10 --sub-net 10.22.22.0 [2018-08-08 08:40:02][INFO]argc=7 ./tinyvpn_x86 -c -r (服务器ip):4096 -f20:10 --sub-net 10.22.2 2.0 [2018-08-08 08:40:02][INFO]sub_net 10.22.22.0 [2018-08-08 08:40:02][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-08-08 08:40:02][INFO]using interface tun653 [2018-08-08 08:40:02][INFO]connection accepted by server

在虚拟机内可以ping通10.22.22.1但是电脑上无法连接10.22.22.1, 虚拟机网络确认是桥接的.

chaosye0 commented 6 years ago

@sdysj 老哥有换内核的教程吗, 鼓捣了两天没个结果很绝望

chaosye0 commented 6 years ago

@sdysj , @wangyu- 搞定了, 再运行一个tinymapper转发一下就能联通了.

wangyu- commented 6 years ago

跟内核版本没关系,电脑上就是无法直接ping通/连接10.22.22.1的。 用你说的tinyMapper或者修改路由表的方法可以解决。

wangyu- commented 6 years ago

@sdysj 跟内核版本没有关系,基本可以肯定是你自己的配置问题,清空iptables按教程重做。