Turn libncui.so
into a standalone executable:
sudo apt-get install gcc-multilib lib32z1
cd ~/.juniper_networks/network_connect
gcc -m32 -Wl,-rpath,`pwd` -o ncui libncui.so
Log in to the VPN UI and get the DSID cookie value.
Run ncui
to connect:
./ncui -h vpn.example.com -c DSID=... -f ~/.vpn.default.crt