Package: vpnc-scripts Version: 0.1~git20190117-1 Severity: important Tags: patch
Hello, After upgrading from stretch to buster I found that the vpnc-script-sshd no longer works. Perhaps there's a syntax change with "ip link". In any case, "ip link" provides new syntax so there no longer has to be any guessing about local and remote device names. Attached is a patch which fixes things. See also: bug #868293. I believe that the patch attached there also makes the script work, just from having poked around and tried various things. But the attached patch is better because its explicit. -- System Information: Debian Release: 10.2 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-6-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages vpnc-scripts depends on: ii iproute2 4.20.0-2 ii net-tools 1.60+git20180626.aebd88e-1 vpnc-scripts recommends no packages. Versions of packages vpnc-scripts suggests: ii dnsmasq 2.80-1 ii openssh-server 1:7.9p1-10+deb10u1 pn resolvconf <none> -- no debconf information
--- /usr/share/vpnc-scripts/vpnc-script-sshd 2019-02-26 12:14:42.000000000 -0600 +++ vpnc-script-sshd 2019-12-31 00:51:12.540753856 -0600 @@ -179,10 +179,9 @@ exit 1 fi - $IP link add dev $TUNDEV-vpnssh%d type veth - # XXX: Assume vpnssh0 and vpnssh1; ip doesn't tell us! LOCALDEV=$TUNDEV-vpnssh0 export REMOTEDEV=$TUNDEV-vpnssh1 + $IP link add name $LOCALDEV type veth peer name $REMOTEDEV $IP netns exec $NETNSNAME $0 $@ & CHILDPID=$!