Skip to content

Instantly share code, notes, and snippets.

@aharris
Last active August 29, 2015 14:17
Show Gist options
  • Save aharris/60272c65eb28473c79ef to your computer and use it in GitHub Desktop.
Save aharris/60272c65eb28473c79ef to your computer and use it in GitHub Desktop.
VPN Split Tunnel
// 1. Get default Gateway
$ netstat -rn | grep "default"
// 2. Start VPN
// 3. Run Command after replacing <my_default_gateway>
$ sudo route -nv add -net 10 -interface ppp0 && sudo route change default <my_default_gateway>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment