G
G
Grog29032020-09-07 20:23:33
linux
Grog2903, 2020-09-07 20:23:33

How to solve openconnect kubuntu error?

Hello!
Help solve the problem with openconnect.
When connected, it gives: Error: ipv4: Invalid values ​​in header for route get request.

System: Kubuntu 20.04

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Barbolin, 2020-09-07
@Grog2903

https://unix.stackexchange.com/questions/576983/op...

I believe this is because of added validation to ipconnect2 (which provides the ip utility) in version 5.x (Not sure which version specifically)

vpnc-script, which is used by openconnect, builds CIDR IPv4 addresses and sends them to the ip utility for routing. ip at version 4.x ignores the netmask length information, but ip at version 5.x regards it as invalid.

I used the downgrade AUR package to bring my ipconnect2 to version 4.20, which seems to work.

https://askubuntu.com/questions/1185485/unable-to-...
The script /etc/vpnc/vpnc-script uses the now unsupported ip get route $NETWORK/$NETMASKLEN syntax. I fixed that by changing the line 261 to

$IPROUTE route add `$IPROUTE route get "$NETWORK" | fix_ip_get_output | sed -e "s/^$NETWORK\$/$NETWORK\/$NETMASKLEN/"`

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question