引用
# ./u1701a -M vpn -L :9666
Stop firefox
LISTENING 0.0.0.0:9666
VPN MODE
0.467 Connecting ...
0.467 Connecting ...
2.628 Connecting ...
2.629 Connecting ...
5.777 CONNECTED
256.252 Connecting ...
473.060 Connecting ...
引用
# nslookup www.freebsd.org
Server: 10.11.0.2
Address: 10.11.0.2#53
Non-authoritative answer:
Name: www.freebsd.org
Address: 172.16.0.0
引用
# nslookup www.dongtaiwang.com
Server: 10.11.0.2
Address: 10.11.0.2#53
Non-authoritative answer:
Name: www.dongtaiwang.com
Address: 172.16.0.1
引用
# ./u1701a -M vpn
引用
# ./u1701a -M vpn
Stop firefox
LISTENING 127.0.0.1:9666
VPN MODE
0.546 Connecting ...
0.546 Connecting ...
3.038 Connecting ...
3.038 Connecting ...
6.222 CONNECTED
301.722 Connecting ...
引用
# nslookup www.freebsd.org
Server: 10.11.0.2
Address: 10.11.0.2#53
Non-authoritative answer:
Name: www.freebsd.org
Address: 172.16.0.0
引用测试结果发现一个问题, Firefox 火狐浏览器 WebRTC 没有关闭,media.peerconnection.enabled 后面的值不是 false 而是 true,
查看Firefox火狐浏览器 WebRTC 的值:
地址栏里输入 about:config 之后按确认键,搜索 media.peerconnection.enabled,
引用自: ultra 于 二月 20, 2017, 09:45:07 上午在 Debian 8 上面测试VPN下分享模式,发现两个问题,
如需要在VPN下分享:sudo ./u1701a -M vpn -L :9666
LISTENING 0.0.0.0:9666 (监听 0.0.0.0:9666 )
VPN MODE (VPN模式)
0.650 Connecting ... (正在连接)
1.569 Connecting ... (正在连接)
2.178 CONNECTED (连接成功)
引用# ./u1701a -M vpn -L :9666终端输出,
引用验证VPN,
# ./u1701a -M vpn -L :9666
Stop firefox
0.448 Connecting ...
0.448 Connecting ...
LISTENING 0.0.0.0:9666
VPN MODE
1.869 Connecting ...
1.869 Connecting ...
3.892 CONNECTED
247.489 Connecting ...
491.597 Connecting ...
734.090 Connecting ...
1171.989 Connecting ...
1398.188 Connecting ...
1652.977 Connecting ...
1846.587 Connecting ...
2093.434 Connecting ...
2320.051 Connecting ...
2559.058 Connecting ...
2798.769 Connecting ...
3031.950 Connecting ...
3527.105 Connecting ...
3779.356 Connecting ...
引用查看域名服务器,
# nslookup www.freebsd.org
;; connection timed out; no servers could be reached
引用查看 tun 虚拟网卡,
# cat /etc/resolv.conf
nameserver 10.11.0.2
引用索取测试网页,
# ifconfig
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:192.168.53.193 Bcast:192.168.53.255 Mask:255.255.255.0
inet6 addr: fe80::a02c:79ff:fea9:cf94/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34967 errors:0 dropped:0 overruns:0 frame:0
TX packets:20713 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:46040735 (43.9 MiB) TX bytes:1862754 (1.7 MiB)
Interrupt:19 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:18134 errors:0 dropped:0 overruns:0 frame:0
TX packets:18134 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7851663 (7.4 MiB) TX bytes:7851663 (7.4 MiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.11.123.123 P-t-P:10.11.123.124 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
引用查看Firefox火狐浏览器 WebRTC 的值:
# curl www.freebsd.org
curl: (6) Could not resolve host: www.freebsd.org
引用
# ./u1701a -M vpn -S safe
引用
# ./u1701a -M vpn -S safe
Stop firefox
LISTENING 127.0.0.1:9666
VPN SAFE MODE
0.231 Connecting ...
0.231 Connecting ...
6.735 Connecting ...
6.735 Connecting ...
11.028 CONNECTED
235.139 Connecting ...
454.140Connecting...
651.078 Connecting ...
引用
# nslookup www.freebsd.org
Server: 10.11.0.2
Address: 10.11.0.2#53
Non-authoritative answer:
Name: www.freebsd.org
Address: 172.16.0.0
引用测试结果发现一个问题, Firefox 火狐浏览器 WebRTC 没有关闭,media.peerconnection.enabled 后面的值是 true,
# nslookup http://security.debian.org/
Server: 10.11.0.2
Address: 10.11.0.2#53
Non-authoritative answer:
Name: http://security.debian.org/
Address: 172.16.0.1
在 0.038 秒内创建了带有 18 查询的页面。