mullvad / mullvadvpn-app

The Mullvad VPN client app for desktop and mobile
https://mullvad.net/
GNU General Public License v3.0
4.96k stars 336 forks source link

Mullvad-vpn doesn't work correctly with systemd-resolved #6063

Open niels0n opened 6 months ago

niels0n commented 6 months ago

Is it a bug?

I have checked if others have reported this already

Current Behavior

If connected to VPN and using systemd-resolved instead of resolveconf, commands with sudo and browser launching are delayed of ~20 seconds.

Expected Behavior

To be able to connect to VPN using systemd-resolved without having a significant delay.

Steps to Reproduce

  1. Use systemd-resolved instead of resolveconf
  2. Connect to VPN

Failure Logs

No response

Operating system version

Pop!_OS 22.04 LTS

Mullvad VPN app version

2024.1

Additional Information

Posting this issue was suggested by a Pop!_OS dev here. You can read the last replies of the issue to have additional informations.

dlon commented 5 months ago

Have you made sure that /etc/resolv.conf is symlinked to systemd-resolved's config? Usually ls -l /etc/resolv.conf should output something like this: /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf. If that's not the case, systemd-resolved may not be detected.

niels0n commented 5 months ago

The symlink does exist, but in my system it is, by default, symlinked to ../run/resolvconf/resolv.conf, instead of ../run/systemd/resolve/stub-resolv.conf.