Tales about Aviation, Coaching, Farming, Software Development

No default route for PPTP connections

Ever wondered how you can avoid Mac OS X' PPTP client to set the default route to the remote gateway? It's a bit annoying that you loose your Internet access, if you connect to PPTP server that doesn't allow your packets through to the Internet.

Bitflux has a good description about how to tell OS X' PPTP client not to change your default route. In short:

Create the directory /etc/ppp/peers, if it doesn't already exist. Then place a file with the exact name of your PPTP connection in there. Write nodefaultroute to that file and when you fire up your PPTP connection your default route will stay untouched.