Skip to content

Instantly share code, notes, and snippets.

@gordonjcp
Last active March 15, 2016 15:35
Show Gist options
  • Save gordonjcp/2ab47ee90d6324d83286 to your computer and use it in GitHub Desktop.
Save gordonjcp/2ab47ee90d6324d83286 to your computer and use it in GitHub Desktop.
#!/bin/bash
# add route to AAISP LNS
ip route add 90.155.53.19 via 192.168.1.1 dev usb0
# add route to add-on.ee.co.uk
ip route add 82.192.97.153 via 192.168.1.1 dev usb0
# now remove the default route through ee
# and pass it through AAISP
ip route delete default via 192.168.1.1 dev usb0
ip route add default via 81.187.81.187
ipcp-accept-local
ipcp-accept-remote
refuse-eap
require-mschap-v2
noccp
noauth
idle 1800
defaultroute
usepeerdns
lock
connect-delay 5000
+ipv6
ipv6cp-accept-local
name <username>
password <password>
[lac aaisp]
lns = 90.155.53.19
ppp debug = no
pppoptfile = /etc/ppp/options.aaisp
length bit = yes
bps = 60000000
redial = yes
redial timeout = 5
autodial = yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment