Debian – Split tunnel VPN with pptp-linux

debiandebian-squeezepptppptp-clientvpn

I have a client installed with pptp-linux. I would like for it to be connected to a VPN (for VPN resources) as well as be connected to the internet for normal web browsing. I know this is not as secure as totally VPN, but it is ok for this setup.

Currently I have a file called settings in /etc/ppp/peers/settings that has this:

pty "pptp $VPNHOSTNAME --nolaunchpppd --debug"
name $USERNAME
password $PASSWORD
remotename PPTP
require-mppe-128
require-mschap-v2
refuse-eap
refuse-pap
refuse-chap
refuse-mschap
noauth
debug
persist
maxfail 0
defaultroute
replacedefaultroute
usepeerdns

I fount this tutorial which tells how to do split tunnel with a GUI.
enter image description here

However is there a way to accomplish this same task using the command line or a line in /etc/ppp/peers/settings?

Best Answer

Remove the defaultroute and replacedefaultroute options from your settings file. Then the VPN link will not become your default route.