Back up to the Incoming L2TP Category

Difference between revisions of "L2TP Client: Linux"

From AAISP Support Site
Jump to: navigation, search
[quality revision][quality revision]
(Created page with "__NOTOC__<indicator name="L2TP">link=:Category:Incoming_L2TP|30px|Back up to the Incoming L2TP Category</indicator> Category:Incoming_L2TP == Linux...")
 
(Updated with a little troubleshooting info)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
__NOTOC__<indicator name="L2TP">[[File:Menu-L2TP.svg|link=:Category:Incoming_L2TP|30px|Back up to the Incoming L2TP Category]]</indicator>
+
__NOTOC__<indicator name="L2TP">[[File:Menu-L2TP.svg|link=:Category:Incoming L2TP|30px|Back up to the Incoming L2TP Category]]</indicator>
[[Category:Incoming_L2TP]]
+
[[Category:Incoming L2TP]]
 
== Linux / xl2tpd ==
 
== Linux / xl2tpd ==
   
Line 30: Line 30:
 
</ol>
 
</ol>
 
This should give you a new PPP device which encapsulates the L2TP connection.
 
This should give you a new PPP device which encapsulates the L2TP connection.
  +
  +
== Troubleshooting ==
  +
Logs are written /var/log/daemon.log
  +
If you see "No such tunnel", you might want to try restarting the daemon

Latest revision as of 11:51, 9 April 2020

Linux / xl2tpd

  1. Ensure the following kernel options are set or the corresponding modules are available:
    1. CONFIG_PPPOL2TP
    2. CONFIG_L2TP
  2. Install xl2tpd and pppd on your Linux router.
  3. Edit /etc/xl2tpd/xl2tpd.conf to contain the following:
    [lac aaisp]
    lns = l2tp.aaisp.net.uk
    require authentication = no
    pppoptfile = /etc/ppp/options.aaisp
  4. Create /etc/ppp/options.aaisp containing the following (obviously change the name and password to match your L2TP login details):
    +ipv6
    ipv6cp-use-ipaddr
    name xyz@a.X
    password Your_xyz@A.X_password
    noauth
  5. Create the xl2tpd control file:
    mkdir -p /var/run/xl2tpd
    touch /var/run/xl2tpd/l2tp-control
  6. Start the xl2tpd service (for systemd, use service command for older RC systems):
    systemctl start xl2tpd
  7. Tell the daemon to connect to aaisp:
    echo "c aaisp" > /var/run/xl2tpd/l2tp-control

This should give you a new PPP device which encapsulates the L2TP connection.

Troubleshooting

Logs are written /var/log/daemon.log If you see "No such tunnel", you might want to try restarting the daemon