Skip to content

Instantly share code, notes, and snippets.

@neilbartley
Last active March 21, 2021 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilbartley/65a52a5265907a6b6ebad6e27afa779f to your computer and use it in GitHub Desktop.
Save neilbartley/65a52a5265907a6b6ebad6e27afa779f to your computer and use it in GitHub Desktop.
Configure Andrews & Arnold L2TP on OpenWRT 19.07

Configure Andrews & Arnold L2TP on OpenWRT 19.07

Andrews & Arnold offer a L2TP Service for people like me, who are trapped behind a CGNAT system.

The following was sourced from here, here and a bit of experimentation.

/etc/config/network

Add following:

config interface 'aa'
        option ifname 'tun'
        option proto 'l2tp'
        option server '90.155.53.19'
        option username '<USERNAME>'
        option password '<PASSWORD>'
        option ipv6 'auto'
        option metric '50'
        
config interface 'aa6'
        option ifname 'l2tp-aa'
        option proto 'dhcpv6'
        option reqaddress 'force'
        option reqprefix '48'
        option peerdns '0'

/etc/config/firewall

Update config zone for wan:

config zone
        option name 'wan'
        ...
        option network 'wan wan6 aa aa6'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment