22.04 l2tp client not working

I just updated to 22.04 from 20.04 and my l2tp vpn stoped to work, tried some tutorials making a purge to xl2tpd and downloaded a old version but still not working, is there any workaround? i work remotely and need to activate vpn to connect to the services.

sudo apt remove --purge xl2tpd
wget
sudo dpkg -i xl2tpd\_1.3.12-1.1\_amd64.deb
sudo apt install network-manager-l2tp network-manager-l2tp-gnome
sudo reboot

added credentials again => failed to activate network connection

1

5 Answers

I have also encountered the same issue after upgrading popos to 22.04. Below are the steps that resolved my issue. You can try it.

Step 1

sudo apt remove --purge xl2tpd

Step 2

wget

Step 3

sudo dpkg -i xl2tpd\_1.3.12-1.1\_amd64.deb

Step 4

sudo apt install network-manager-l2tp network-manager-l2tp-gnome

Step 5

sudo service xl2tpd stop

Step 6

sudo reboot

1

you can find the solution here

the problem is newer xl2tpd likely doesnt compatible with l2tp

1

This solved it for me:

  • sudo apt install golang-go
  • go install ""
  • sudo mkdir /usr/local/sbin
  • sudo cp go/bin/kl2tpd /usr/local/sbin

In that case, the Network Manager uses kl2tpd instead of xl2tpd.

Liker our friend said:

sudo apt remove --purge xl2tpd
wget
sudo apt install ./xl2tpd_1.3.12-1.1_amd64.deb
sudo apt install network-manager-l2tp network-manager-l2tp-gnome
systemctl restart xl2tpd

Works on, ubuntu 22.04 with Mikrotik VPN Router.

I followed the instructions to use xl2tpd-1.3.12, as other uses have suggested, and also had to uncheck the IPsec Phase1 and Phase2 Algorithms. Previously I was using Phase1 Algorithms: 3des-sha1-modp1024 and Phase2 Algorithms: 3des-sha1. The defaults seemed to work just fine.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like