Using Openconnect from the commandline
Jan Bakuwel
jan.bakuwel at greenpeace.org
Tue Sep 24 03:28:54 EDT 2013
Hi there,
I'm using OpenConnect successfully in combination with NetworkManager
but am wondering how I can achieve the same from the commandline. The
command I'm using is:
echo -n "<passwd>" | openconnect --user=<user> --servercert <cert>
--syslog --passwd-on-stdin --cookie="<cookie>" --verbose
--script=/etc/vpnc/vpnc-script <ip>:443
which produces the following result in syslog:
Sep 24 18:10:32 l1 openconnect[11184]: Attempting to connect to
59.167.225.30:443
Sep 24 18:10:32 l1 openconnect[11184]: SSL negotiation with 59.167.225.30
Sep 24 18:10:32 l1 openconnect[11184]: Connected to HTTPS on 59.167.225.30
Sep 24 18:10:32 l1 openconnect[11184]: Got CONNECT response: HTTP/1.1 200 OK
Sep 24 18:10:32 l1 openconnect[11184]: No IP address received. Aborting
The vpnc-script is the standard unmodified vpnc-script (and is executable).
Any suggestions what I'm missing here?
kind regards,
Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3701 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20130924/9f908006/attachment.p7s>
More information about the openconnect-devel
mailing list