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

It takes a long time to reconnect after Sleep on Mac #3895

Open mikesk8 opened 2 years ago

mikesk8 commented 2 years ago

Hi, The issue with reconnecting after Sleep is hitting again (2022.4 and Mac 12.5.1). It takes up to 60sec to reconnect after sleep. Kind regards, M.

adunanya commented 2 years ago

I too have had this issue twice this week. When I open up my MacBook Air, my WiFi connects but has an explanation point over the wifi symbol in the tray area that says "no internet" on hover... and Mullvad says in the client: "connection blocked". I tried disabling the 'always on firewall' feature and tried switching protocols to openVPN, but it does not fix the issue. I also disabled wifi and turned it back on and it still doesn't connect or sense any internet connection. I checked the IP and it says it can't communicate with the router ("no ip") in Network settings. The only thing that I can do at that point is to restart my laptop and then everything's back to normal. It happened on Friday for me and also today this morning.

As I understand, iVPN uses the same code structure to keep the firewall "always on" (which I love by the way), but they've never had this issue and I used them for years before switching to you guys. I can't imagine what this could be from, but it's really annoying have to do a full restart twice a week. Please make this a top priority to fix guys! Really ruins the wireguard experience too </3 Thank you Mullvad team. System info below:

MacBook Air 11" 2020 MacOS: 11.5.2 Big Sur Mullvad Client Version 2022.3

pinkisemils commented 2 years ago

Would you mind sending a problem report from the app? The always-on-firewall should not interfere with macOS's connectivity check when coming out of sleep. Could you please also post the output of nslookup captive.apple.com when this happens?

Ch00k commented 1 year ago

I am experiencing the same issue on a fresh install of macOS 12.6.1 with Mullvad app version 2022.5. nslookup captive.apple.com times out:

~ $ nslookup captive.apple.com
Server:     100.64.0.23
Address:    100.64.0.23#53

When the connection does get established, the output of nslookup captive.apple.com is this:

~ $ nslookup captive.apple.com
Server:     100.64.0.23
Address:    100.64.0.23#53

Non-authoritative answer:
captive.apple.com   canonical name = captive-cidr.origin-apple.com.akadns.net.
captive-cidr.origin-apple.com.akadns.net    canonical name = captive-cdn.origin-apple.com.akadns.net.
captive-cdn.origin-apple.com.akadns.net canonical name = captive.g.aaplimg.com.
Name:   captive.g.aaplimg.com
Address: 17.253.53.205
Name:   captive.g.aaplimg.com
Address: 17.253.53.201

The firewall on my system is disabled.

Ch00k commented 1 year ago

I also just submitted a problem report from the app. I hope it helps.

serniebanders commented 1 year ago

I am also having this issue.

Edit: tentatively, I'm going to declare that this issue is fixed (for me). I hadn't experienced this issue until I installed and later uninstalled Little Snitch. I suspected that perhaps a daemon or process was still operating under Little Snitch even though I had uninstalled it, so I ran some commands on their website to check this. Sure enough, something was still there. I followed their guide to completely remove all processes & daemons, and then uninstalled again via Applications -> Trash. Thereafter my problem was solved. I don't know if this will last, but I suspect that other people with this issue may either

  1. have existing configuration files from other other programs interfering with Mullvad's client/files

or

  1. there is a more serious problem going on here.

I will update if anything changes.

ikkerens commented 1 year ago

Any update on this? This issue has been plagueing me for a while now, with at times it taking up to a minute before Mullvad manages to reconnect (even using the reconnect button). Completely closing Mullvad and then reopening it seems to be instantaneous.

I don't have any firewall software like Litle Snitch, never had it either.

MrChocolatine commented 1 year ago

Any update on this? This issue has been plagueing me for a while now, with at times it taking up to a minute before Mullvad manages to reconnect (even using the reconnect button). Completely closing Mullvad and then reopening it seems to be instantaneous.

I don't have any firewall software like Litle Snitch, never had it either.

@ikkerens , have you tried to disconnect your Wi-Fi (or cable) then connect it again? I am not talking about disconnecting the VPN, but the Wi-Fi/cable of your OS. Doing this has always worked for me. (not saying this is a solution, just an annoying workaround...)

ikkerens commented 1 year ago

@ikkerens , have you tried to disconnect your Wi-Fi (or cable) then connect it again? I am not talking about disconnecting the VPN, but the Wi-Fi/cable of your OS. Doing this has always worked for me. (not saying this is a solution, just an annoying workaround...)

I have, to no effect. Unless I kill & restart Mullvad it refuses to reconnect, even if I re-connect to wifi. (No cable, because macbook pro 2021)

MooseExplorer637 commented 1 week ago

I haven't had this issue happen at all since I installed macOS Sequoia last week. Has everyone else had the same experience, and do you have any idea what could have fixed it?