Skip to content

Instantly share code, notes, and snippets.

@gumayunov
Created October 12, 2011 06:11
Show Gist options
  • Save gumayunov/1280422 to your computer and use it in GitHub Desktop.
Save gumayunov/1280422 to your computer and use it in GitHub Desktop.
#!/bin/zsh
VPNWORK="192.168.10.1"
if [[ $IPREMOTE = $VPNWORK ]]; then
/sbin/route add 192.168.166.0/24 192.168.10.1 > /tmp/ppp.log 2>&1
fi
@gumayunov
Copy link
Author

/etc/ppp/ip-up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment