Today Ubuntu 23.04 offered to automatically upgrade by GlobalProtect VPN from 5.xx.xx to 6.1.2-82. When I accepted the upgrade, after it was installed, when the VPN is running DNS is broken for ALL SNAP applications. When the VPN is not running, all applications, including SNAP apps, function normally.
With the VPN running, SNAP apps are unable to perform ANY DNS look-ups.
Is there a way to downgrade back to the a 5.xx.xx version so it will continue to work. Alternatively, is there a way to make the 6.1.2-82 version work correctly for SNAP applications?
I had some Linux users running 22.10 who ran into a similar issue after upgrading to GlobalProtect 6.0.7.
I know both those versions are different from yours however what worked for them was to install resolvconf, reconfigure resolvconf, reboot, and then reinstall GlobalProtect.
I’ve just had the same issue when testing a deployment for our Ubuntu fleet.
I managed to find a workaround by modifying the /etc/systemd/resolved.conf file and adding the following line under the [Resolve] section:
DNSStubListenerExtra = 127.0.0.1:53
This fixes the problem for me. If I understand correctly, this keeps systemd-resolved listening on an additional address/port rather than stopping completely when the /etc/resolv.conf file is changed.
I’ve never tested older versions of GlobalProtect, but I think this issue is caused by the way it replaces the /etc/resolv.conf.
Usually this file is a symlink to /run/systemd/resolve/stub-resolv.conf.
When globalprotect takes over, it changes the symlink to something like /opt/paloaltonetworks/globalprotect/resolv.conf
I’m not sure if this is a valid or expected way to change the DNS configuration
EDIT:
For anyone coming back to this now, it looks like GP version 6.2.1-276 now natively works with systemd-resolved, and you don’t need the workaround.
I encounter a similar issue: Globalprotect add DNS but the resolver deamon seems to crash, NetworkManager Restart, Wireless restart, Globalprotect reconnect, and it loop infinitely.
I tested it on a fresh and updated linux mint, which is based on ubuntu 22.04, but it didn’t avoid wireless to disconnect.