Skip to content

Instantly share code, notes, and snippets.

@dyoung522
Created January 8, 2015 19:01
Show Gist options
  • Save dyoung522/afe2a2cd413fe6945c3d to your computer and use it in GitHub Desktop.
Save dyoung522/afe2a2cd413fe6945c3d to your computer and use it in GitHub Desktop.
Add a permanent static route to OS X 10.10
#!/bin/bash
sudo /sbin/route add -net x.x.x.0/24 xxx.xxx.xxx.xxx
# Save this file somewhere and make it executable (chmod a+x <file>)
# Then run 'sudo defaults write com.apple.loginwindow LoginHook /Path/To/Your/Script'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment