我有一个带有Windows XP来宾的运行Oracle VirtualBox 3.2.6的Ubuntu 10.04。我使用来宾VM希望访问的VPN,在ifconfig上显示为:
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:5.192.10.99 P-t-P:5.192.10.99 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1362 Metric:1
RX packets:14151 errors:0 dropped:0 overruns:0 frame:0
TX packets:19860 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:4415271 (4.4 MB) TX bytes:17949982 (17.9 MB)
在VM上使用NAT或网桥适配器只会给我非vpn适配器。如何将tun0适配器映射到VirtualBox?
设置/etc/sysctl.conf
:
sysctl net.ipv4.ip_forward=1
然后运行:
sudo sysctl -p
(应该没有必要,但是)我在那之后重启了。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句