OpenConnect Juniper VPN Not Working in Ubuntu 18.04
Solution 1:
I performed a:
sudo apt install network-manager-openconnect-gnome
Then I setup the VPN details via the GUI. When I connect now via the GUI, it is working and there is communication.
I still need to investigate what is happening differently, but this might help in the meantime.
Solution 2:
@Fabby Thank you for the response. I also made some progress the other day. I did some reading and ended up creating a tunnel manually:
sudo ip tuntap add vpn0 mode tun user $USERNAME
I then had to modify my command to use the new tunnel that was manually created:
exec /usr/bin/sudo /usr/sbin/openconnect --juniper --servercert $CERT --user=$USERNAME $HOST -i vpn0
This generally worked, but I didn't get the DNS servers, if I add them manually, then everything works.
I suspect that some changes with the latest kernel are preventing the tunnel from being created on the fly and that DNS is not being set when you tell it to use a pre-made tunnel.
I will play with the Gnome network manager as you suggest and play around with command line more as well. Thanks!