@Grog2903

Как решить ошибку openconnect kubuntu?

Здравствуйте!
Помогите решить проблему с openconnect.
При подключении выдает: Error: ipv4: Invalid values in header for route get request.

Система: Kubuntu 20.04
  • Вопрос задан
  • 313 просмотров
Решения вопроса 1
@dronmaxman
VoIP Administrator
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/"`
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы