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

How can I add a static route "forever", that means without retyping add route in Terminal each time I'm using VPN? I found this solution for 10.6, but what if there is a nicer one for 10.7?

share|improve this question
up vote 1 down vote accepted

I would use Lingon to script this as a system startup - you can always use launchd to load or unload the job from the command line (or delete the route).

You don't need Lingon, it just makes it so much more friendly to assemble a plist that launchd likes to run.

share|improve this answer
It appears that just adding a route script isn't enough and some smarts on the timing of the command is needed for route to work reliably as a LaunchDaemon. – bmike Jan 16 '12 at 21:18

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.