How do I use OpenConnect via Network Manager to connect to Juniper VPN?
The more general question: How do I pass arguments/switches to the client in Network Manager?
In order to connect to a Juniper VPN using OpenConnect, I use the following command-line:
sudo openconnect --juniper -u me vpn.juniper.example.com
I've installed network-manager-openconnect
, but it fails to connect (I get a "XML response has no "auth" node" message in the log window).
How do I configure the vpn client when using Network Manager?
Update
It may not be as simple as passing the --juniper
switch. I renamed the client and put a shell script in its place to call the client with the --juniper
switch added and saw no difference in the behavior when trying to connect. So the general question remains: how to configure the client when using Network Manager?
Solution 1:
In Ubuntu 17.10, it seems to "just work" as long as you install not only network-manager-openconnect but also network-manager-openconnect-gnome .
The connection can then be configured via the settings UI: Under Network, VPN click the +, then choose Cisco AnyConnect Compatible VPN, then in the new connection dialog choose Juniper / Pulse OpenConnect and fill in the details.