Back

Set up L2TP over IPsec for iDRAC on Ubuntu 16.04 and Ubuntu 16.10

1. Update list of available packages:

sudo apt update

2. Install needed packages:

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

3. Reinstall Network Manager:

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

4. Remove AppArmor IPsec settings:

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

5. Replace x2ltpd with libcap

sudo apt remove xl2tpd
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 

6. Reboot your system.

7. Now your Network Manager can create L2TP connections.

Set up L2TP over IPsec for iDRAC on Ubuntu 16.04 and Ubuntu 16.10
Ubuntu 16.04 and Ubuntu 16.10
Set up L2TP over IPsec for iDRAC
iDRAC on Ubuntu 16.04 and Ubuntu 16.10

8. Add following route to enable access to iDRAC network:

How to setup L2TP over IPsec for iDRAC on Linux Ubuntu 16.04 and Ubuntu 16.10
How to setup L2TP over IPsec for iDRAC on Linux Ubuntu 16.04 and Ubuntu 16.10

9. Now you can connect to VPN and access iDRAC.

How to setup L2TP over IPsec for iDRAC on Linux Ubuntu 16.04 and Ubuntu 16.10

Share

Suggested Articles

  • Dedicated servers

    How to setup L2TP over IPsec for iDRAC on Linux Fedora 24

  • Dedicated servers

    How to setup L2TP over IPsec for iDRAC on Mac OS X