Skip to content

Instantly share code, notes, and snippets.

@m4tm4t
Created November 9, 2015 20:30
Show Gist options
  • Save m4tm4t/5f4777eda35210ce4ea9 to your computer and use it in GitHub Desktop.
Save m4tm4t/5f4777eda35210ce4ea9 to your computer and use it in GitHub Desktop.
#!/bin/bash
baseip=`echo $5 | cut -d'.' -f1-3`
ip route add $baseip.0/24 dev ppp0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment