editor
706
edits
This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!
(Formatting) |
(syntax) |
||
===Network configuration===
In the network configuration below, my normal router was a thinkpad connected to wifi, sharing that over ethernet. It was just a test setup. On that DHCP server on the thinkpad, the subnet was
You MUST NOT use DHCP on this connection. You have to set a static IP, so that you can set a custom route, going to
The fact that I used Virgin Media on this line is irrelevant. You can use L2TP on any ISP. Adapt the config below to your needs, accordingly:
===/etc/network/interfaces===
<syntaxhighlight lang=bash>
source /etc/network/interfaces.d/*
NOTE: We shall re-edit this file later. For now though, our purpose is only to get online.
NOTE: IP address
===Enabling IP forwarding===
sysctl -p
This will reload
===L2TP===
It may seem counter-intuitive above, that we've configured PPP as though we're on a hardline, but this is important for the next step. A&A provides L2TP without authentication, but then you authenticate via PPP routed through L2TP.
Debian kernels should already have the correct modules, but otherwise you must ensure that the
It should be noted that A&A L2TP service is (as of this day) currently without IPSEC or other encryption such as wireguard. This is less than ideal, but you will likely be doing a lot of encrypted things online anyway (lots of websites are https-aware nowadays).
You will not be able to use DNS until the L2TP is up, so we will use A&A's IP address for
===/etc/xl2tpd/xl2tpd.conf===
Place the following contents:
Create this file, and place the following contents:
NOTE: the
<syntaxhighlight>
===PPP IF Up/Down scripts===
PPPoE and L2TP are managed by
===/etc/ppp/ipv6-up.d/0000-defaultroute===
This L2TP routing setup is a bit hacky, and this guide could use some refinement.
The
The last line that says "reboot" will run at boot time, for each and every boot. It will also run again, once every minute. If the L2TP is online, running the command is harmless and will simply exit.
ListenAddress 10.0.0.42
You can find useful logs in
==Testing==
|