L2TP/IPsec VPN with NetworkManager on Debian Stretch

I’m running KDE on Debian 9 and L2TP VPNs don’t work out of the box. If I add an L2TP connection to NetworkManager and try to connect it says that I need to install network-manager-l2tp, which isn’t packaged for Stretch. The good news is that the package in Debian unstable currently works just fine.

  1. Install dependencies
    # apt install strongswan xl2tpd
    
  2. Download the package manually for your architecture at the bottom of this page: https://packages.debian.org/sid/network-manager-l2tp
  3. Install it
    # dpkg -i network-manager-l2tp_1.2.8-1_amd64.deb
    
  4. Open NetworkManager settings
  5. Add “Layer 2 Tunneling Protocol” (the “IPsec” options are not the right ones for an ordinary L2TP/IPsec network)
  6. Enter details. If you are using a pre shared key for IPsec, note that it is okay to fill in only that field under IPsec Settings.
  7. Select VPN and hit Connect. It should just work.

Post a comment

All comments are held for moderation; basic HTML formatting accepted.

Name: (required)
E-mail: (required, not published)
Website: (optional)
This blog's name is?
"tinkering down _____"
(required)