rssnsj / minivtun

A fast, secure and reliable VPN service based on non-standard protocol
GNU General Public License v3.0
246 stars 102 forks source link

为什么会提示“ open_tun() failed: Permission denied.”? #9

Open luckypoem opened 7 years ago

luckypoem commented 7 years ago

hi.

我的mac装了tuntaposx, yudeMacBook-Air:src brite$ ls -l /dev/|grep tun crw-rw---- 1 root wheel 19, 0 10 28 14:38 tun0 crw-rw---- 1 root wheel 19, 1 10 28 14:38 tun1 crw-rw---- 1 root wheel 19, 10 10 28 14:38 tun10 crw-rw---- 1 root wheel 19, 11 10 28 14:38 tun11 crw-rw---- 1 root wheel 19, 12 10 28 14:38 tun12 crw-rw---- 1 root wheel 19, 13 10 28 14:38 tun13 crw-rw---- 1 root wheel 19, 14 10 28 14:38 tun14 crw-rw---- 1 root wheel 19, 15 10 28 14:38 tun15 crw-rw---- 1 root wheel 19, 2 10 28 14:38 tun2 crw-rw---- 1 root wheel 19, 3 10 28 14:38 tun3 crw-rw---- 1 root wheel 19, 4 10 28 14:38 tun4 crw-rw---- 1 root wheel 19, 5 10 28 14:38 tun5 crw-rw---- 1 root wheel 19, 6 10 28 14:38 tun6 crw-rw---- 1 root wheel 19, 7 10 28 14:38 tun7 crw-rw---- 1 root wheel 19, 8 10 28 14:38 tun8 crw-rw---- 1 root wheel 19, 9 10 28 14:38 tun9 yudeMacBook-Air:src brite$

但是, yudeMacBook-Air:src brite$ ./minivtun --remote my_vps_ip:1414 -a 10.7.0.33/24 --key my_key --daemon *\ open_tun() failed: Permission denied.

为什么会提示“ open_tun() failed: Permission denied.”?

luckypoem commented 7 years ago

哦,我知道了。 yudeMacBook-Air:src brite$ sudo ./minivtun --remote my_vps_ip:1414 -a 10.7.0.33/24 --key my_key --daemon Password: Mini virtual tunnelling client to my_vps_ip:1414, interface: tun0. yudeMacBook-Air:src brite$

服务器上运行正常。不过翻不了墙,访问显示ip的网站,显示的是本地的ip,怎么回事呢?

rssnsj commented 7 years ago

没说这玩意儿连上就能翻墙呀。

Sent from my iPhone

On Oct 30, 2016, at 15:44, luckypoem notifications@github.com wrote:

哦,我知道了。 yudeMacBook-Air:src brite$ sudo ./minivtun --remote my_vps_ip:1414 -a 10.7.0.33/24 --key my_key --daemon Password: Mini virtual tunnelling client to my_vps_ip:1414, interface: tun0. yudeMacBook-Air:src brite$

服务器上运行正常。不过翻不了墙,访问显示ip的网站,显示的是本地的ip,怎么回事呢?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

luckypoem commented 7 years ago

那么连上后,还要如何做,才能翻墙呢?

tony1016 commented 7 years ago

@luckypoem 修改路由表,把流量导入TUN??