mozilla-mobile / mozilla-vpn-client

A fast, secure and easy to use VPN. Built by the makers of Firefox.
https://vpn.mozilla.org
Other
456 stars 110 forks source link

Mozilla VPN fails connecting on Windows 11 since version 2.19 with "Background Service Error" message. #9342

Open data-sync-user opened 5 months ago

data-sync-user commented 5 months ago

Description The user is reporting that he is not able to connect into our VPN service since version 2.19 since he received a "Background Service error Restore" message after approximate 1 minute. Additionally, it worked 4 month ago, so could be related Windows Update. User also mentioned that he did allow Mozilla VPN access through Microsoft Defender Firewall, which is the only anti-virus solution he use on the PC.

He see a Mozilla VPN (tunnel) service with start-type manual. If he try to start it, he get an error 7024: “The system cannot find the path specified” in the event log.

The path in the service is:

"C:/Program Files/Mozilla/Mozilla VPN/Mozilla VPN.exe" tunneldaemon "[Interface] =Address = 10.138.113.166/32, fc00:bbbb:bbbb:bb01:d:0:a:71a6/128 DNS = 10.64.0.1, fc00:bbbb:bbbb:bb01::1 Table = off "

This path exists of course.

The user also mentioned that he have everything activated except for Microsoft Network Adapter Multiplexor in his network settings and that this is identical to my PC running Windows 10 where the VPN works OK.

Does it impact functionality or aesthetics? Y Does this endanger users? What would be compromised and how likely is the threat? N How annoying is this for affected users? (Think about how much 'in the way' this is, relative to what the user is trying to do) Y Does it degrade the user experience significantly? Y Is it legally sensitive? N

Centrality Is it on a core user journey or on a secondary one? Connection, Server selection, Adding/removing device, Sign in/out = Core functionality. Tips & Tricks, Split Tunneling, Printing (Local Network Access), DNS, = Secondary functionality Technical Information

Steps to Reproduce

  1. Launch Mozilla VPN
  2. Try to perform a connection into a server
  3. A red banner that says “Background Service Error“ appears and also screen pop up that says “Server Unavailable, The server has been blocked. Check your Firewall settings”

Actual Results No connection to Mozilla VPN is performed Expected Results

Mozilla VPN should connect since there is a Firewall Exception

┆Issue is synchronized with this Jira Bug ┆Reporter: Juan Carlos Enriquez

data-sync-user commented 5 months ago

➤ Basti commented:

The interesting part here is

[27.01.2024 18:54:43.664] (tunnel.dll) Debug: Opening tunnel log file C:/Program Files/WireGuard/Data/log.bin [27.01.2024 18:54:43.664] (tunnel.dll) Info: [TUN] [MozillaVPN] Starting WireGuard/0.3.15 (Windows 10.0.22631; amd64) [27.01.2024 18:54:43.664] (tunnel.dll) Info: [TUN] [MozillaVPN] Watching network interfaces [27.01.2024 18:54:43.664] (tunnel.dll) Info: [TUN] [MozillaVPN] Resolving DNS names [27.01.2024 18:54:43.664] (tunnel.dll) Info: [TUN] [MozillaVPN] Creating Wintun interface [27.01.2024 18:54:43.918] (tunnel.dll) Info: [TUN] [MozillaVPN] [Wintun] CreateAdapter: Creating adapter [27.01.2024 18:54:43.918] (tunnel.dll) Info: [TUN] [MozillaVPN] [Wintun] CreateAdapter: Requested GUID is already in use: {6FE9822F-51AC-2513-8C7D-AD8C29A0723A}: En fil, som allerede findes, kan ikke oprettes. (Code 0x000000B7) [27.01.2024 18:54:43.918] (tunnel.dll) Info: [TUN] [MozillaVPN] Unable to create Wintun interface: Error creating interface: Cannot create a file when that file already exists. [27.01.2024 18:54:43.918] (tunnel.dll) Info: [TUN] [MozillaVPN] Shutting downThis GUID is not random it’s pseudorandom based on the Config we send to tunnel.dll. We pass that to CreateTUN:

// CreateTUN creates a Wintun interface with the given name. Should a Wintun // interface with the same name exist, it is reused. func CreateTUN(ifname string, mtu int) (Device, error) { return CreateTUNWithRequestedGUID(ifname, WintunStaticRequestedGUID, mtu) }Here is the fun part, the docs say, this function should not error if the interface exists. So this might be pointing towards a bug in wintun 🙂

Which means one more reason to do https://mozilla-hub.atlassian.net/browse/VPN-842 ( https://mozilla-hub.atlassian.net/browse/VPN-842|smart-link )

data-sync-user commented 4 months ago

➤ Santiago Andrigo commented:

Lowering to Medium as this is support-low and we’ve identified the root cause, which does not point to a likely widespread situation.