Friday, 14 April 2017

Installing L2TP IPSec Client on Ubuntu 16.04

As ppa warner repository does not support on Ubuntu 16.04, so we need to install it manualy.

I have did a lot work make configure and finally did it with the help of following steps.

First of all you must install the prerequisites with the help of following command, Just copy and paste as shown in image:


sudo apt-get 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


Now you will need to install git, because we will need to clone and build network manager. So give following set of commands one by one:

sudo apt-get install git
git clone https://github.com/nm-l2tp/network-manager-l2tp.git
cd network-manager-l2tp
autoreconf -fi
intltoolize

 Cross check if there is any error build, and now configure build with the help of following command just copy paste and enter as it is:


./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

Now run make command with the help of following commands.

make
sudo make install

Now remove AppArmor settings for IPSec with following commands.

sudo apparmor_parser -R /etc/apparmor.d/usr.lib.ipsec.charon
sudo apparmor_parser -R /etc/apparmor.d/usr.lib.ipsec.stroke

Now remove x2ltpd and install libpcap with the help of following commands:

sudo apt remove xl2tpd
sudo apt install libpcap0.8-dev

Now download and install xl2tpd-1.3.6 with the help of following commands one by one:

wget https://github.com/xelerance/xl2tpd/archive/v1.3.6/xl2tpd-1.3.6.tar.gz
sudo chmod 755 xl2tpd-1.3.6.tar.gz
tar xvzf xl2tpd-1.3.6.tar.gz
cd xl2tpd-1.3.6
make
sudo make install

Now restart your computer and look at your network configuration wizard, here it will show you  L2TP VPN option. Configure it according to your server settings.

No comments:

Post a Comment