今天我决定将我的操作系统从 18.04 升级到 19.10 我通过以下命令在终端中使用 openconnect:
sudo openconnect de.cisadd2.com
然后我输入我的用户名和密码,它总是会连接,但是在将我的操作系统升级到 19.10 后,虽然它说它已连接,但却出现了一个奇怪的错误。
POST https://de.cisadd2.com/auth
Got CONNECT response: HTTP/1.1 200 CONNECTED
CSTP connected. DPD 90, Keepalive 32400
Connected as 10.10.199.191, using SSL, with DTLS in progress
Established DTLS connection (using GnuTLS). Ciphersuite (DTLS1.2)-(PSK)-(AES-256-GCM).
Error: ipv4: Invalid values in header for route get request.
Error: ipv4: Invalid values in header for route get request.
Error: ipv4: Invalid values in header for route get request.
答案1
该脚本/etc/vpnc/vpnc-script
使用了现在不受支持的ip get route $NETWORK/$NETMASKLEN
语法。我通过将第 261 行更改为
$IPROUTE route add `$IPROUTE route get "$NETWORK" | fix_ip_get_output | sed -e "s/^$NETWORK\$/$NETWORK\/$NETMASKLEN/"`