我正在尝试在我的机器 Ubuntu 12.04 上设置 VPN 连接。我执行的步骤如下:
sudo pptpsetup --create myvpn --server 123.123.123.123 --username vpnuser --encrypt
sudo pon myvpn
输入密码后,我猜我已成功连接到 VPN:/var/log/syslog 的输出:
Jan 28 13:23:11 mypc pppd[4368]: CHAP authentication succeeded
Jan 28 13:23:11 mypc pppd[4368]: MPPE 128-bit stateless compression enabled
Jan 28 13:23:11 mypc pppd[4368]: local IP address 172.20.x.x
Jan 28 13:23:11 mypc pppd[4368]: remote IP address 81.171.x.x
这是我的ifconfig
输出:
ppp0 Link encap:Point-to-Point Protocol
inet addr:172.20.x.x P-t-P:81.171.x.x Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1392 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:60 (60.0 B) TX bytes:66 (66.0 B)
wlan0 Link encap:Ethernet HWaddr 9c:4e:36:43:c8:8c
inet addr:192.168.x.x Bcast:192.168.x.x Mask:255.255.255.0
inet6 addr: fe80::9e4e:36ff:fe43:c88c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23031 errors:0 dropped:0 overruns:0 frame:0
TX packets:15034 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:24204707 (24.2 MB) TX bytes:1892375 (1.8 MB)
所以我想现在一切都很顺利,但我仍然有我的无线网络的 IP。我想我缺少通过 VPN 路由所有流量的方法,对吗?
答案1
为了将您的流量路由通过隧道,您必须将此告知您的操作系统。
请访问 sf.net 官方页面的此链接。如何