Strong swan VPN issues with xl2tpd and debian stretch

I’ve been using strong swan to provide a vpn server with my raspberry pi running osmc.

Recently I’ve came across the impossibility of having clients connecting to the vpn using l2tpd / ike.

After some log browsing I’ve pin pointed in journalctl:
xl2tpd: udp_xmit failed to x.x.x.x:xxxx with err=1 : no such device

the currently available xl2tpd version 1.3.8 seems to have some sort of incompatibility with debian stretch.

  • Temporary Workaround:
    The workaround I’ve found was to download an older xl2tpd version 1.3.1 and forced its installation:

wget http://ftp.debian.org/debian/pool/main/x/xl2tpd/xl2tpd_1.3.1+dfsg-1_armhf.deb
sudo apt-get install ./xl2tpd_1.3.1+dfsg-1_armhf.deb

But note that once osmc is updated, xltpd 1.3.1 will be forced to upgrade to the current 1.3.8.

I leave this note in case someone is able to find a definitive solution.
(this happens with every xl2tpd version >=1.3.6 (including the recent 1.3.11 form march 2018 (available in the debian pool).

Thanks

You can “hold” the package so that it no longer gets updated:

echo "xl2tpd hold" | sudo dpkg --set-selections
1 Like