Connecting to Juniper SSL VPN using OpenConnect on GNU/Linux
Network Connect has been replaced by Junos Pulse for some time already, but GNU/Linux users were left in the dark, since there is currently no official package provided by Juniper for Junos Pulse on GNU/Linux.
Fortunately there is OpenConnect, which makes it possible for GNU/Linux users to connect to a Juniper SSL VPN endpoint.
Here are instructions for setting up OpenConnect to establish a connection to a remote Juniper SSL VPN endpoint.
These instructions were tested on a Arch Linux,
system running Linux kernel
First, let's install the needed packages.
$ sudo pacman -S git openconnect python2-pip
Next we will install the Python Juniper VPN Authenticator, which is a script that authenticates with a Juniper SSL VPN endpoint and generates a session cookie, which in turn is passed to a VPN client.
$ sudo pip2 install mechanize
Now, clone the
Python Juniper VPN Authenticator repository.
$ git clone https://github.com/russdill/juniper-vpn-py
You can now connect to a remote Juniper SSL VPN endpoint by running the command below.
$ sudo python2 juniper-vpn-py/juniper-vpn.py --host <sslvpn.example.org> \ --user <username> --stdin DSID=%DSID% openconnect --juniper %HOST% --cookie-on-stdin