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.31k stars 459 forks source link

无法运行 #2

Closed siriume closed 6 years ago

siriume commented 6 years ago

虚拟机 root@LEDE:~# ./tinyvpn -c r45.77.88.99:2222 -f20:10 -k "passwd" --sub-net 10.22.22.0 [2017-10-29 08:59:01][INFO]argc=8 ./tinyvpn -c r45.77.88.99::2222 -f20:10 -k passwd --sub-net 10.22.22.0 [2017-10-29 08:59:01][INFO]sub_net 10.22.22.0 [2017-10-29 08:59:01][FATAL]error: -r not found

服务器 root@vultr:~# tinyvpn -s -l0.0.0.0:2222 -f20:10 -k "passwd" --sub-net 10.22.22.0
[2017-10-29 03:57:34][INFO]argc=8 tinyvpn -s -l0.0.0.0:2222 -f20:10 -k passwd --sub-net 10.22.22.0 [2017-10-29 03:57:34][INFO]sub_net 10.22.22.0 [2017-10-29 03:57:34][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=1

wangyu- commented 6 years ago

参数写错了,应该是-r

siriume commented 6 years ago

嗯 你的readme里面没加,我也没注意

siriume commented 6 years ago

加了之后新错误,我知道readme里面提过 但是没看懂 tun相关的 [2017-10-29 09:03:16][FATAL]open /dev/net/tun failed

wangyu- commented 6 years ago

如果你是在tinyFecVPN发布之前就下载了我提供的虚拟机,那个里面是没装kmod-tun的。

需要用opkg update和opkg install kmod-tun安装一下。

也可以用原来的链接重新下载一下虚拟机,最新的虚拟机文件已经默认装好了这个。

你的readme里面没加,我也没注意

确实中文的文档里写错了,已修正。多谢提醒。

siriume commented 6 years ago

查了半天,发现ping不通。

wangyu- commented 6 years ago

用的是前面发的命令吗?两边加上--log-level 5 --log-position,贴一下log。

wangyu- commented 6 years ago

你尝试一下在服务端运行nc -l -p 3333 -u,在客户端运营nc -l 44.55.66.77 3333 -u,然后在两边输几行字符试一下能否在对面收到。