Created
March 13, 2015 21:06
-
-
Save jcderr/3e77e0d40aa84491c919 to your computer and use it in GitHub Desktop.
vpnroute.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GATEWAY=$(ifconfig | grep 192.168 | grep "\-\->" | awk '{ print $2 }') | |
sudo /sbin/route add -net 10.0.0.0 -netmask 255.0.0.0 -gateway $GATEWAY |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment