I have a Ubuntu 10.04 running Oracle VirtualBox 3.2.6 with a Windows XP guest. I use a VPN that I would like to be accessed by the guest VM, on a ifconfig it shows as:
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)
Using NAT or Bridge adapters on the VM only gives me the non-vpn adapter. How can I map the tun0 adapter to VirtualBox?
I met the same problem, and googled around but found no answer. at last I found my solution:
then I can access the resource in VM.
Setting
/etc/sysctl.conf
:Then running:
(Should not be necessary but) I rebooted after that.