Just updated to 22.04, L2TP VPN refuses to work

EDIT: the way I solved my VPN issues in Pop-!OS 22.04 (Maybe System76 will have fixes for that in the future, but for now this works for me)

Solution for L2TP VPN (thank you u/log2x_johnshi )

sudo apt remove --purge xl2tpd

wget http://archive.ubuntu.com/ubuntu/pool/universe/x/xl2tpd/xl2tpd_1.3.12-1.1_amd64.deb

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

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

sudo reboot

Solution for OpenVPN (source**) :**Note: this disables some layers of security, maybe there is a better fix out there, I will edit my post as time goes by

  1. Export your vpn connection (replace “MyVPN” with the actual name of your VPN):
    nmcli c export "MyVPN" > "~/MyVPN.ovpn"
  2. Edit the exported file and add these 2 lines
    tls-cipher "DEFAULT:@SECLEVEL=0"remote-cert-tls server
  3. Re-import the VPN in the GUI (you might have to re-enter your credentials afterwards)
    nmcli c import type openvpn file "MyVPN.ovpn"

Original post:

I just updated to 22.04, and I love it, many small annoyances are now fixed (like Bluetooth headset issues) but for a reason I can’t understand, the L2TP VPN refuses to work…Other types of VPN work fine.

I worked on monday on 21.10 and stopped working after 22.04 update…

Tried re-creating the connexion, won’t connect, no clear error message

Am I alone?

I haven’t started troubleshooting yet, but my VPN also stopped working with 22.04

I am having the same issue, but the solution below only works for a little while.
Then the connection is lost again.

Also, I can’t access the remote network so it’s not connecting properly, the failure seems only delayed…

I had soved like this:

  1. sudo apt remove --purge xl2tpd
  2. sudo dpkg -i xl2tpd_1.3.12-1.1_amd64.deb
  3. http://archive.ubuntu.com/ubuntu/pool/universe/x/xl2tpd/xl2tpd\_1.3.12-1.1\_amd64.deb
  4. sudo apt install network-manager-l2tp network-manager-l2tp-gnome
  5. reboot

[This comment has been deleted in response to the new Reddit API Policy in 2023]

The commands listed earlier fixed L2TP VPNs for me, but for some reason, today I realized that OpenVPN connections do not work anymore and they were working before I fixed L2TP.

Fortinet SSL vpns are working fine with the openfortivpn client

Just want to chime in my Wireguard VPN connection stopped working after the upgrade. But can do IKEV2 just fine.

Same is happening to me. The fix only works for a couple days.

Did you turn-off IPV6 ? Never had a stable connection using IPv6, on any system!

Your solution worked with a little tweaking, but I am really unsure about the fact that the link is not secure…

Here is the exact commands, in the order that I used them to fix it:

sudo apt remove --purge xl2tpd

wget http://archive.ubuntu.com/ubuntu/pool/universe/x/xl2tpd/xl2tpd_1.3.12-1.1_amd64.deb

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

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

sudo reboot

Thanks again!

Can confirm this works. Just swap #3 and #2

Ok, informations from this page helped me fix OpenVPN connexions! yay!

Hi, nice idea, I never had to change anything, but I tried to disable it on the VPN connection only.

(no effect…)

Did you mean to disable IPv6 on my main wired connection?