Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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
add comment

1 Answer

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
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.