If you are running 64 bit linux, you may need to install 32 bit libraries for glibc, zlib, and nss-mdns. In the instructions below, replace vpn.company with the your VPN appliance hostname.
You will need to know the login realm in order to connect. If you don’t already know the realm, you can get it as follows:
wget -q --no-check-certificate -O - 'https://vpn.company/dana-na/auth/url_default/welcome.cgi' | sed -n 's/.*<input\( [^>]*name="realm" [^>]*\)>.*/\1/p' | sed -n 's/.* value="\([^"]*\)".*/\1/p'
Download and unpack the VPN client java application:
mkdir -p ~/.juniper_networks/network_connect cd ~/.juniper_networks/network_connect wget https://vpn.company/dana-cached/nc/ncLinuxApp.jar unzip ncLinuxApp.jar
Get the VPN server certificate
sh ./getx509certificate.sh vpn.company company.crt
Finally, establish the VPN connection
./ncsvc -h vpn.company -u username -r realm-f ./company.crt
A big thanks to StardustOne on serverfault.com for providing this information.