Openconnect does not forward traffic through tun0

David Woodhouse dwmw2 at infradead.org
Wed Aug 17 02:48:43 PDT 2016


On Wed, 2016-08-17 at 14:14 +0430, Amirmohsen Ahanchi wrote:
> Yes im using NetworkManager and using NetworkManager-openconnect fixed
> the problem.
> 
> thanks, you're a savior.
> 
> But everytime i try to connect to vpn i have to click on "login" to connect
> (even though i have checked the save password option).
> 
> Is it possible to disable this procedure and connect automatically
> (specially because i'm using nmcli to connect and i don't want any gui involved)

Not quite yet. It's not hard to do it though. You could probably throw
together a script which authenticates manually using the known username
and password (perhaps by spawning 'openconnect --authenticate...') and
then registers itself as  secret-agent for NM.

So instead of the GUI session spawning an auth-dialog on demand to
interact with the server and obtain the login cookie, your own secret-
agent could provide them.

-- 
dwmw2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5760 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20160817/7244404b/attachment.bin>


More information about the openconnect-devel mailing list