Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

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

share|improve this answer
    
hmm.. when I remove defaultroute or replacedefaultroute or both, I can't connect to the client anymore from another client. –  Scoop Nov 26 '12 at 18:55
    
Need moar details... Client on what network? Perhaps update your question with a route table or something useful? –  Zoredache Nov 26 '12 at 20:58
    
There are three machines total. One Windows machine, which has split tunneling enabled. One ubuntu server that is the PPTP server. And a debian machine, which this question is about. When I do the above changes, I can't connect from the windows machine to the debian machine. How do I print the route tables? –  Scoop Nov 27 '12 at 1:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.