Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I setup a PPTP VPN on mac os x lion, on the advanced tab I do not have the send all traffic over VPN connection checked. I only want traffic to a specific server connected to go through the vpn, everything else should not be sent over the vpn.

Where do I look to find out which IP addresses will be included for traffic over the vpn and which ones will not?

share|improve this question
up vote 2 down vote accepted

Have you tried using the route command to declare a static route?

For instance, I use the following with my VPN:

sudo route -v -net -netmask -interface ppp0

This tells any traffic going to 10.41.x.x to go over the VPN interface (ppp0).

share|improve this answer

I had to add add to your command for it to work on OS X.

First, connect your vpn and find the interface name: ifconfig. Mine was also ppp0. Then run: sudo route -v add -net -netmask -interface ppp0.

-net is a modifier on the add command. Works like a charm.

share|improve this answer

Your Answer


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.