Openconnect 连接但实际上无法访问 vpn

时间:2021-06-10 14:06:42

标签: vpn openconnect

我试图通过 openconnect-gui 访问 VPN,它确实连接成功,但奇怪的是,它无法访问任何公司内部站点。我没有配置任何代理或防火墙。
在查看日志时,我发现了一条可疑的行:

Script '/usr/bin//etc/vpnc/vpnc-script' returned error 127

我不确定如何更改此脚本的路径,以及这是否能解决我的问题

完整的日志粘贴如下:

2021-06-10 18:37:58 | 7f68803feac0 | OpenConnect-GUI VPN client (1.5.3) logging started...
2021-06-10 18:38:55 | 7f686d972640 | POST [URL]
2021-06-10 18:38:56 | 7f686d972640 | Attempting to connect to server [IP ADDR]
2021-06-10 18:38:56 | 7f686d972640 | Connected to [IP ADDR]
2021-06-10 18:38:56 | 7f686d972640 | SSL negotiation with gateway
2021-06-10 18:38:56 | 7f686d972640 | Connected to HTTPS on gateway with ciphersuite (TLS1.2)-(ECDHE-SECP256R1)-(RSA-SHA512)-(AES-256-GCM)
2021-06-10 18:38:56 | 7f686d972640 | Got HTTP response: HTTP/1.0 302 Temporary moved
2021-06-10 18:38:56 | 7f686d972640 | Content-Length: 0
2021-06-10 18:38:56 | 7f686d972640 | Cache-Control: no-cache
2021-06-10 18:38:56 | 7f686d972640 | Pragma: no-cache
2021-06-10 18:38:56 | 7f686d972640 | Connection: Close
2021-06-10 18:38:56 | 7f686d972640 | Date: Thu, 10 Jun 2021 13:08:56 GMT
2021-06-10 18:38:56 | 7f686d972640 | X-Frame-Options: SAMEORIGIN
2021-06-10 18:38:56 | 7f686d972640 | Location:[URL]
2021-06-10 18:38:56 | 7f686d972640 | HTTP body length:  (0)
2021-06-10 18:38:56 | 7f686d972640 | POST [url]
2021-06-10 18:38:56 | 7f686d972640 | Attempting to connect to server 
2021-06-10 18:38:56 | 7f686d972640 | Connected to [IP]
2021-06-10 18:38:56 | 7f686d972640 | SSL negotiation with [vpn]
2021-06-10 18:38:56 | 7f686d972640 | Connected to HTTPS on [vpn] with ciphersuite (TLS1.2)-(ECDHE-SECP256R1)-(RSA-SHA512)-(AES-256-GCM)
2021-06-10 18:38:56 | 7f686d972640 | Got HTTP response: HTTP/1.1 200 OK
2021-06-10 18:38:56 | 7f686d972640 | Content-Type: text/html; charset=utf-8
2021-06-10 18:38:56 | 7f686d972640 | Transfer-Encoding: chunked
2021-06-10 18:38:56 | 7f686d972640 | Cache-Control: no-cache
2021-06-10 18:38:56 | 7f686d972640 | Pragma: no-cache
2021-06-10 18:38:56 | 7f686d972640 | Connection: Keep-Alive
2021-06-10 18:38:56 | 7f686d972640 | Date: Thu, 10 Jun 2021 13:08:56 GMT
2021-06-10 18:38:56 | 7f686d972640 | X-Frame-Options: SAMEORIGIN
2021-06-10 18:38:56 | 7f686d972640 | X-Aggregate-Auth: 1
2021-06-10 18:38:56 | 7f686d972640 | HTTP body chunked (-2)
2021-06-10 18:38:56 | 7f686d972640 | XML POST enabled
2021-06-10 18:38:56 | 7f686d972640 | Text form: username
2021-06-10 18:38:56 | 7f686d972640 | Password form: password
2021-06-10 18:39:01 | 7f686d972640 | POST https://[corporate URL]/
2021-06-10 18:39:02 | 7f686d972640 | Got HTTP response: HTTP/1.1 200 OK
2021-06-10 18:39:02 | 7f686d972640 | Content-Type: text/html; charset=utf-8
2021-06-10 18:39:02 | 7f686d972640 | Transfer-Encoding: chunked
2021-06-10 18:39:02 | 7f686d972640 | Cache-Control: no-cache
2021-06-10 18:39:02 | 7f686d972640 | Pragma: no-cache
2021-06-10 18:39:02 | 7f686d972640 | Connection: Keep-Alive
2021-06-10 18:39:02 | 7f686d972640 | Date: Thu, 10 Jun 2021 13:09:01 GMT
2021-06-10 18:39:02 | 7f686d972640 | X-Frame-Options: SAMEORIGIN
2021-06-10 18:39:02 | 7f686d972640 | X-Aggregate-Auth: 1
2021-06-10 18:39:02 | 7f686d972640 | HTTP body chunked (-2)
2021-06-10 18:39:02 | 7f686d972640 | TCP_INFO rcv mss 1379, snd mss 1424, adv mss 1448, pmtu 1500
2021-06-10 18:39:02 | 7f686d972640 | Got CONNECT response: HTTP/1.1 200 OK
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Version: 1
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Protocol: Copyright (c) 2004 Cisco Systems, Inc.
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Address: 
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Netmask: 
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Address-IP6: ipv6
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Hostname: [name of host]
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-DNS: DNS
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-DNS: dns
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-DNS-IP6: dns
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-DNS-IP6: dns
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Lease-Duration: 86400
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Session-Timeout: 86400
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Session-Timeout-Alert-Interval: 60
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Session-Timeout-Remaining: 86400
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Idle-Timeout: 21600
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Disconnected-Timeout: 21600
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Default-Domain: [domain]
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Split-Exclude: [excluded]
...
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Keep: true
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Tunnel-All-DNS: true
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-DPD: 30
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Keepalive: 20
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-MSIE-Proxy-PAC-URL: [PAC-URL]
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-MSIE-Proxy-Lockdown: false
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Smartcard-Removal-Disconnect: true
2021-06-10 18:39:02 | 7f686d972640 | X-DTLS-Session-ID:
2021-06-10 18:39:02 | 7f686d972640 | X-DTLS-Port: 443
2021-06-10 18:39:02 | 7f686d972640 | X-DTLS-Keepalive: 20
2021-06-10 18:39:02 | 7f686d972640 | X-DTLS-DPD: 30
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-MTU: 1300
2021-06-10 18:39:02 | 7f686d972640 | X-DTLS-MTU: 1300
2021-06-10 18:39:02 | 7f686d972640 | X-DTLS12-CipherSuite: ECDHE-RSA-AES256-GCM-SHA384
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Routing-Filtering-Ignore: false
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Quarantine: false
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Disable-Always-On-VPN: false
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Client-Bypass-Protocol: false
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-TCP-Keepalive: true
2021-06-10 18:39:02 | 7f686d972640 | X-CSTP-Post-Auth-XML: <elided>
2021-06-10 18:39:02 | 7f686d972640 | CSTP connected. DPD 30, Keepalive 20
2021-06-10 18:39:02 | 7f686d972640 | DTLS option X-DTLS-Session-ID :
2021-06-10 18:39:02 | 7f686d972640 | DTLS option X-DTLS-Port : 443
2021-06-10 18:39:02 | 7f686d972640 | DTLS option X-DTLS-Keepalive : 20
2021-06-10 18:39:02 | 7f686d972640 | DTLS option X-DTLS-DPD : 30
2021-06-10 18:39:02 | 7f686d972640 | DTLS option X-DTLS-MTU : 1300
2021-06-10 18:39:02 | 7f686d972640 | DTLS option X-DTLS12-CipherSuite : ECDHE-RSA-AES256-GCM-SHA384
2021-06-10 18:39:02 | 7f686d972640 | DTLS initialised. DPD 30, Keepalive 20
2021-06-10 18:39:02 | 7f686d972640 | Established DTLS connection (using GnuTLS). Ciphersuite (DTLS1.2)-(ECDHE-RSA)-(AES-256-GCM).
2021-06-10 18:39:02 | 7f686d972640 | Initiating MTU detection (min=576, max=1300)
2021-06-10 18:39:02 | 7f686d972640 | No change in MTU after detection (was 1300)
2021-06-10 18:39:03 | 7f686d972640 | Script '/usr/bin//etc/vpnc/vpnc-script' returned error 127
2021-06-10 18:39:03 | 7f686d972640 | Script '/usr/bin//etc/vpnc/vpnc-script' returned error 127
2021-06-10 18:39:03 | 7f686d972640 | Could not open /tmp/vpnc.log: 5
2021-06-10 18:39:22 | 7f686d972640 | Send DTLS Keepalive
2021-06-10 18:39:22 | 7f686d972640 | Send CSTP Keepalive
2021-06-10 18:39:32 | 7f686d972640 | Send DTLS DPD
2021-06-10 18:39:32 | 7f686d972640 | Send CSTP DPD
2021-06-10 18:39:32 | 7f686d972640 | Got DTLS DPD response
2021-06-10 18:39:32 | 7f686d972640 | Got CSTP DPD response

谢谢!

0 个答案:

没有答案