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 rebootadded credentials again => failed to activate network connection
15 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
you can find the solution here
the problem is newer xl2tpd likely doesnt compatible with l2tp
1This solved it for me:
sudo apt install golang-gogo install ""sudo mkdir /usr/local/sbinsudo 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 xl2tpdWorks 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.