Openconnect does not forward traffic through tun0

Amirmohsen Ahanchi ahanchi at gmail.com
Wed Aug 17 03:41:26 PDT 2016


I would really appreciate it if you could elaborate, how exactly i can
register a script as secret-agent for NM.


On Wed, Aug 17, 2016 at 2:18 PM, David Woodhouse <dwmw2 at infradead.org> wrote:
> 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



More information about the openconnect-devel mailing list