How install L2tp

Hello, how to install L2tp vpn? Sorry for my bad english.

Clear Linux has wireguard support and openvpn packages. These may or may not work easily with NetworkManager - you’ll have to try it.

I personally am a big fan of wireguard since it can work with just a simple text config file set and only needs systemd-networkd, but, it’s probably a little spartan for people.

1 Like

I need to connect to the company server where I work and the connection method is L2TP, is there any planning to include this service in the distro?

NetworkManager-extras bundle has l2tp support since just a few days ago. Try installing that and see if that works (sorry, I have no idea how to actually use it myself).

Thanks ahkok, xl2tpd and IpSec are still missing. I will wait for the next updates.

I have no outstanding requests for these tools.

Does NM require them to work? Or are these tools alternatives to NM to configure l2tp?

Yes, to enable IPSec Settings on L2TP, xl2tpd is required. Otherwise we could not configure the preshared key. Thanks for the attention!

did anyone manage to start l2tp/ipsec ?

i cannot start ipsec service
/usr/libexec/ipsec/pluto gets segmentation fault

changed one line in /usr/lib/systemd/system/ipsec.service
now everithing is working fine

# ExecStart=/usr/libexec/ipsec/pluto --leak-detective --config /etc/ipsec.conf --nofork
ExecStart=/usr/libexec/ipsec/pluto --config /etc/ipsec.conf --nofork

Thanks for sharing your solution, @fanfani4!

Hi guys,

I had another problem with l2tp:
Process: 1626 ExecStartPre=/usr/libexec/ipsec/addconn --config /etc/ipsec.conf --checkconfig (code=exited, status=3)
Process: 1627 ExecStopPost=/sbin/ip xfrm policy flush (code=exited, status=0/SUCCESS)
Process: 1628 ExecStopPost=/sbin/ip xfrm state flush (code=exited, status=0/SUCCESS)
Process: 1629 ExecStopPost=/usr/sbin/ipsec --stopnflog (code=exited, status=0/SUCCESS)

Can anyone help me with this?

Try running the command here from a terminal, check any output, and check journalctl as well. The error code is not documented in the manual page for this program, so it’s difficult to say whether the config file is invalid, missing, or some other bug.

I have checked /etc/ipsec.conf - this file is empty in my system. I think that this is root cause of problem.

I also have the same problem. I configured my VPN over the GUI to make a L2tp connection via a pre-shared key over IPsec. Connection is not possible and when I check the above remarks I also find that the /etc/ipsec.conf does not exist. How can I fix that?