Ubuntu 16.04 – Zprovoznění L2TP přes IPSEC

l2tp-ipsec2
Instalace potřebných balíčků:

sudo apt-get update
sudo apt-get install intltool libtool libnm-glib-vpn-dev libnm-gtk-dev libnm-dev libsecret-1-dev libgtk-3-dev libglib2.0-dev libnma-dev ppp-dev libdbus-glib-1-dev network-manager-dev libnm-util-dev libnm-glib-dev xl2tpd strongswan git -y


Sestavení - instalace network-manager-l2tp:

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

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

make 
sudo make install






Odstranění nastavení apparmor pro ipsec:

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


Nahrazení x2ltpd libpcapem:

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

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

... restart :)
ubuntu-16-04-l2tp-ipsec
ubuntu-l2tp-ipsec