Step 1 Content
Install prerequisites. Open a terminal(Ctrl+Alt+t) and type these commands(each command needs to be typed on separate line):
sudo apt install \
intltool \
libtool \
network-manager-dev \
libnm-util-dev \
libnm-glib-dev \
libnm-glib-vpn-dev \
libnm-gtk-dev \
libnm-dev \
libnma-dev \
ppp-dev \
libdbus-glib-1-dev \
libsecret-1-dev \
libgtk-3-dev \
libglib2.0-dev \
xl2tpd \
strongswan
After you input this, press enter and you will be prompted for password, type your password. On the next stop, type "y" and press enter.
*Don't close the terminal!*
Step 2 Content
Build the network manager. Type each line in the terminal:
**YOU HAVE TO TYPE THIS ONLY IF YOU DON'T HAVE GIT INSTALLED:**
**sudo apt install git**(without the **)
git clone https://github.com/nm-l2tp/network-manager-l2tp.git
cd network-manager-l2tp
autoreconf -fi
intltoolize
*Don't close the terminal!*
Step 3 Content
Configure the build. Type each line in the terminal:
./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
*Don't close the terminal!*
Step 4 Content
Make it. Type each line in the terminal:
make
sudo make install
*Don't close the terminal!*
Step 5 Content
Remove AppArmor settings for IPSec. Type each line in the terminal:
sudo apparmor_parser -R /etc/apparmor.d/usr.lib.ipsec.charon
sudo apparmor_parser -R /etc/apparmor.d/usr.lib.ipsec.stroke
*Almost done. Don't close the terminal!*
Step 6 Content
Replace x2ltpd with libpcap. Type each line in the terminal:
sudo apt remove xl2tpd
**Type "y" and press enter when you are prompted**
sudo apt install libpcap0.8-dev
wget https://github.com/xelerance/xl2tpd/archive/v1.3.6/xl2tpd-1.3.6.tar.gz
tar xvzf xl2tpd-1.3.6.tar.gz
cd xl2tpd-1.3.6
make
sudo make install
*Now you can close the terminal and restart your computer to get the changes done.*