L2TP Client: Linux: Difference between revisions

Back up to the Incoming L2TP Category
From AAISP Support Site
mNo edit summary
Line 45: Line 45:


Then using Network Manager, create the L2TP connection:
Then using Network Manager, create the L2TP connection:
#Add a L2TP connection
#Add a L2TP connection: (pic below)
##Click the Network icon on the task bar
##Click the Network icon on the task bar
##Click Settings
##Click Settings
##Next to 'VPN', click the + icon
##Next to 'VPN', click the + icon
#Enter in the settings:
#Enter in the settings: (pic below)
##Name: anything, eg AAISP
##Name: anything, eg AAISP
##Type: Password
##Type: Password
Line 55: Line 55:
##Password: the password we gave you
##Password: the password we gave you
##Click Apply
##Click Apply
#Connect/disconnect via the network icon on the taskbar
#Connect/disconnect via the network icon on the taskbar (pic below)


<gallery>
<gallery>

Revision as of 21:39, 1 December 2021

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


Ubuntu / Network Manager

First, install the packages

apt install xl2tpd network-manager-l2tp network-manager-l2tp-gnome


Then using Network Manager, create the L2TP connection:

  1. Add a L2TP connection: (pic below)
    1. Click the Network icon on the task bar
    2. Click Settings
    3. Next to 'VPN', click the + icon
  2. Enter in the settings: (pic below)
    1. Name: anything, eg AAISP
    2. Type: Password
    3. User name: your login we gave you, eg xxx@a.1
    4. Password: the password we gave you
    5. Click Apply
  3. Connect/disconnect via the network icon on the taskbar (pic below)