Created
February 21, 2012 04:00
-
-
Save chumpy/1873557 to your computer and use it in GitHub Desktop.
Adds ppp0 route to kernel route list to support IPSec VPN
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 | |
| ifconfig -a ppp0 | grep inet | awk '{print $2}' | xargs -0 -I ip sudo route add default gw ip ppp0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment