Just how to map a VPN (tun0) network adapter on host Ubuntu to a VirtualBox visitor Windows?

I have a Ubuntu 10.04 running Oracle VirtualBox 3.2.6 with a Windows XP visitor. I make use of a VPN that I would love to be accessed by the visitor VM, on a ifconfig it reveals 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)

Making Use Of NAT or Bridge adapters on the VM just offers me the non-vpn adapter. Just how can I map the tun0 adapter to VirtualBox?

0
2019-05-05 10:59:15
Source Share
Answers: 1

Setting /etc/sysctl.conf :

sysctl net.ipv4.ip_forward=1

Then running :

sudo sysctl -p

(Should not be essential yet) I restarted afterwards.

0
2019-05-08 15:47:22
Source