Choose source interface for PPTP VPN on Ubuntu
- by Emyl
I have an Ubuntu Virtualbox guest with two network interface, eth0 (NAT) and eth1 (bridged).
I want to connect to a PPTP VPN using eth1, but I don't know how to specify which interface to use. If i just try:
sudo pon myvpn nodetach
It fails with:
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
Modem hangup
Connection terminated.
Looking at routes with route seems to indicate that eth0 is being used:
x.x.x.x.no 10.0.2.2 255.255.255.255 UGH 0 0 0 eth0