NetworkManager-l2tp is a VPN plugin for NetworkManager 1.2 which provides support for L2TP and L2TP/IPsec (i.e. L2TP over IPsec) connections.
For L2TP support, it uses xl2tpd ( https://www.xelerance.com/software/xl2tpd/ )
For IPsec support, it uses either of the following :
- Libreswan ( https://libreswan.org )
- strongSwan ( https://www.strongswan.org )
./autogen.sh
./configure # (optional, see below)
make
The default ./configure settings aren't reasonable and should be explicitly
overridden with ./configure arguments. In the configure examples below, you
may need to change the --with-pppd-plugin-dir
value to an appropriate
directory that exists.
./configure \
--disable-static --prefix=/usr \
--sysconfdir=/etc --libdir=/usr/lib/x86_64-linux-gnu \
--libexecdir=/usr/lib/NetworkManager \
--localstatedir=/var \
--with-pppd-plugin-dir=/usr/lib/pppd/2.4.7
./configure \
--disable-static --prefix=/usr \
--sysconfdir=/etc --libdir=/usr/lib64 \
--localstatedir=/var \
--with-pppd-plugin-dir=/usr/lib64/pppd/2.4.7
Issue the following on the command line :
sudo killall -TERM nm-l2tp-service
sudo /usr/lib/NetworkManager/nm-l2tp-service --debug
sudo killall -TERM nm-l2tp-service
sudo /usr/libexec/nm-l2tp-service --debug