Skip to content

Instantly share code, notes, and snippets.

@ppp0
Last active December 23, 2015 23:49
Show Gist options
  • Save ppp0/6712828 to your computer and use it in GitHub Desktop.
Save ppp0/6712828 to your computer and use it in GitHub Desktop.
Installing a if-up script for macosx ppp (used for VPN)
#!/bin/bash
OUTFILE='/etc/ppp/ip-up'
cat >${OUTFILE} <<EOF
#!/bin/sh
/sbin/route add 10.55.40.128/16 -interface \$1
EOF
chmod +x ${OUTFILE}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment