Issue with recent version of iproute2?
Hi,
I'm trying to use openconnect on Arch Linux which has iproute2 5.5.0. The default vpnc-script used with openconnect seems to call ip route
with invalid arguments.
It is related to the error in the issue I've posted to openconnect (openconnect#106 (closed))
To debug the issue I've added set -x
in /etc/vpnc/vpnc-script file and it seems to be here:
+ set_exclude_route 0.0.0.0 255.255.255.0 24
+ NETWORK=0.0.0.0
+ NETMASK=255.255.255.0
+ NETMASKLEN=24
++ /sbin/ip route get 0.0.0.0/24
++ fix_ip_get_output
++ sed -e 's/ /\n/g'
++ sed -ne '1p;/via/{N;p};/dev/{N;p};/src/{N;p};/mtu/{N;p}'
Error: ipv4: Invalid values in header for route get request.
So the command invoked /sbin/ip route get 0.0.0.0/24
seems to be wrong.
Note: I've just replaced the real IP address with 0.0.0.0 for privacy reasons.