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?
Asked
Active
Viewed 1,971 times
3
shabunc
- 646
1 Answers
1
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.
bmike
- 235,889
-
1It 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