Skip to content

Instantly share code, notes, and snippets.

@chumpy
Created February 21, 2012 04:00
Show Gist options
  • Select an option

  • Save chumpy/1873557 to your computer and use it in GitHub Desktop.

Select an option

Save chumpy/1873557 to your computer and use it in GitHub Desktop.
Adds ppp0 route to kernel route list to support IPSec VPN
#! /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