Failed to open tun device: Invalid argument

S P Arif Sahari Wibowo lists-infradead.org at arifsaha.com
Thu Mar 19 15:13:32 PDT 2015


Hi all!

I tried to run OpenConnect but failed with "Failed to open tun 
device: Invalid argument", the verbose output is as such (actual 
addresses have been replaced by dummy ones):

myworkstation:~ root# openconnect -v -u myloginid vpn.myemployer.ca
POST https://vpn.myemployer.ca/
Attempting to connect to server ip.adr.x.x:443
SSL negotiation with vpn.myemployer.ca
Connected to HTTPS on vpn.myemployer.ca
Got HTTP response: HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Cache-Control: no-cache
Pragma: no-cache
Connection: Keep-Alive
Date: Wed, 18 Mar 2015 22:05:51 GMT
X-Frame-Options: SAMEORIGIN
X-Aggregate-Auth: 1
HTTP body chunked (-2)
XML POST enabled
Please enter your CCID and Password
Password:
POST https://vpn.myemployer.ca/
Got HTTP response: HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Cache-Control: no-cache
Pragma: no-cache
Connection: Keep-Alive
Date: Wed, 18 Mar 2015 22:05:59 GMT
X-Frame-Options: SAMEORIGIN
X-Aggregate-Auth: 1
HTTP body chunked (-2)
Got CONNECT response: HTTP/1.1 200 OK
X-CSTP-Version: 1
X-CSTP-Protocol: Copyright (c) 2004 Cisco Systems, Inc.
X-CSTP-Address: ip.adr.x.1
X-CSTP-Netmask: 255.255.254.0
X-CSTP-Hostname: VPN.remote.myemployer.ca
X-CSTP-DNS: ip.adr.dns.a
X-CSTP-DNS: ip.adr.dns.b
X-CSTP-Lease-Duration: 1209600
X-CSTP-Session-Timeout: none
X-CSTP-Idle-Timeout: 1200
X-CSTP-Disconnected-Timeout: 1200
X-CSTP-Default-Domain: remote.myemployer.ca
X-CSTP-Keep: true
X-CSTP-Tunnel-All-DNS: false
X-CSTP-DPD: 30
X-CSTP-MSIE-Proxy-Lockdown: true
X-CSTP-Smartcard-Removal-Disconnect: true
X-DTLS-Session-ID: 86CA*********************************************************CC3
X-DTLS-Port: 443
X-DTLS-DPD: 30
X-CSTP-MTU: 1406
X-DTLS-CipherSuite: AES256-SHA
X-CSTP-Routing-Filtering-Ignore: false
X-CSTP-Quarantine: false
X-CSTP-Disable-Always-On-VPN: false
X-CSTP-Client-Bypass-Protocol: false
X-CSTP-TCP-Keepalive: true
X-CSTP-Post-Auth-XML: <elided>
CSTP connected. DPD 30, Keepalive 0
CSTP Ciphersuite: (TLS1.2)-(DHE-RSA-1024)-(AES-256-CBC)-(SHA256)
Failed to open tun device: Invalid argument
Set up tun device failed
myworkstation:~ root# echo $?
1


My workstation is running Mac OS X 10.8.5 (Darwin Kernel Version 
12.6.0). I compiled the OpenConnect 7.05 from source using 
MacPorts.

Any idea what went wrong?


Thank you!


Note: I tried several times to submit request to join the 
mailing list but no confirmation letter received.

-- 
    ____  ____  ____  ____ (stephan paul) Arif Sahari Wibowo
   /___  /___/ /___/ /___      http://www.arifsaha.com/
  ____/ /     /   / ____/



More information about the openconnect-devel mailing list