Ubuntu – OpenConnect Juniper VPN Not Working in Ubuntu 18.04

network-managernetworkingopenconnectservervpn

I have been using openconnect for a long time now with our corporate VPN. I upgraded my personal laptop to Ubuntu 18.04 and I can no longer receive network traffic once connect.

I use the following command to connect:

/usr/bin/sudo /usr/sbin/openconnect --juniper --servercert $CERT --user=$USERNAME $HOST

I have to use the --servercert flag because of how the certs were installed on the VPN servers.

Anyway, this has been working flawlessly for the last few versions of Ubuntu.

With 18.04, the /etc/resolve.conf file is getting modified as expected, openconnect itself reports no issues, but once I am connected, I receive no traffic.

I have been doing some reading that the kernel with 18.04 may require some changes to the /etc/sysctl.conf file.

Is there anyone who can help figure out why I no longer receive traffic once connected the VPN via openconnect?

I assume since it doesn't appear to be DNS, that this is a problem with the tunnel.

I am going to compare to my 17.10 machine to see if there is something obvious which is different.

Any help would be greatly appreciated!

Best Answer

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.

Related Question