mullvadvpn-app

mullvadGPL-3.0活跃维护

Mullvad VPN 的官方桌面与移动客户端,基于 Rust 和 Electron 构建,支持 OpenVPN 与 WireGuard 协议,注重隐私保护。

The Mullvad VPN client app for desktop and mobile

android/2026.12发布于 2026-09-30 14:32 UTC7,766star +10 / 7 天567fork同步于 2026-11-10 23:33 UTC

怎么上手

由 README 提炼,执行前请确认
git clone https://github.com/mullvad/mullvadvpn-app.git
cd mullvadvpn-app
git submodule update --init
硬件要求按 README 说明

README 未说明具体硬件或显存要求,仅指向 docs/supported-platforms.md 查看支持的操作系统、版本与架构。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

Mullvad VPN 官方客户端源码,覆盖桌面与移动端,提供隐私优先的加密隧道

Mullvad VPN 的官方桌面与移动客户端,基于 Rust 和 Electron 构建,支持 OpenVPN 与 WireGuard 协议,注重隐私保护。

核心能力

  • Rust 守护进程 mullvad-daemon 统一管理隧道与安全
  • 桌面端提供 Electron GUI 与 Rust CLI 两种前端
  • 支持 WireGuard 多跳、TCP、Shadowsocks、QUIC 与抗量子隧道
  • 内置 DAITA 防御 AI 流量分析并支持分隧道与自定义 DNS
  • 所有平台默认采用更严格的防泄漏安全设置

容易踩的坑

不要用 --recursive 克隆,部分子模块体积大且构建不需要;构建前需按 BuildInstructions.md 准备各平台依赖;Android 与 iOS 需分别参考各自目录下的构建说明。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本android/2026.12
  1. android/2026.12最新正式版2026-09-30 · 2026-09-30 14:32 UTC

    Here is a list of all changes since last stable release android/2026.11:

    Fixed

    • Use English instead of empty Arabic and Persian translations.
  2. android/2026.112026-09-23 · 2026-09-23 13:39 UTC
    查看更新说明

    Here is a list of all changes since last stable release android/2026.10:

    Fixed

    • Fix a rare crash that could occur if a touch event was received just as the map view was created.
  3. android/2026.102026-09-17 · 2026-09-17 10:08 UTC
    查看更新说明

    [!NOTE]
    This and previous releases contains issue that in some cases causes the first connection attempt to fail when using features such as Quantum-resistant tunnels or DAITA. A fix for this will be included in a future release.

    Here is a list of all changes since last stable release android/2026.9:

    Fixed

    • Fix QUIC obfuscator hanging when being cancelled in connecting state. This would cause the entire tunnel state machine to hang, requiring restart of the app.
  4. android/2026.92026-09-15 · 2026-09-15 15:06 UTC
    查看更新说明

    [!CAUTION] We advise from using this version and instead recommend using 2026.10. This release contains an error that could cause the tunnel to get stuck in connecting/disconnecting if QUIC is used. After this happens it is impossible to affect the tunnel in any way and the only way to disconnect is either by disconnecting via the system settings or force stopping the app.

    [!NOTE]
    This and previous releases contains issue that in some cases causes the first connection attempt to fail when using features such as Quantum-resistant tunnels or DAITA. A fix for this will be included in a future release.

    Here is a list of all changes since last stable release android/2026.8:

    Fixed

    • Fix LWO not working with with multihop, DAITA on, and PQ off.
    • Fix the sorting of the location list in English being incorrect.
    • Fix the device sometimes being incorrectly marked as revoked when the API rejects an expired access token.

    Added

    • Make the map interactive, with support for pan, pinch-to-zoom, and fling. This is to discover where servers are located as well as displaying your connection path.
    • Add a new multihop design with a new "when needed" option that will automatically multihop when it is needed given the currently active settings (e.g. DAITA is on).
    • Highlight search phrase when searching in Select location.

    Changed

    • Route 10.124.0.0/23 inside the tunnel when Local network sharing is turned on. This is to enable the use of SOCKS5 proxies on other relays together with Local network sharing.
    • Filters are split into entry and exit filters which can be set independently from each other.
    • Improve search in Select location, ordering is now by relevancy and fuzzy search results are included.
  5. 2026.52026-09-14 · 2026-09-14 06:02 UTC
    查看更新说明

    This release is for desktop only.

    Here is a list of all changes since last stable release 2026.4:

    Added

    • Add explicit log levels for mullvad log set-level command: off, error, warn, info, debug and trace.

    Changed

    • Do not show dialog when rendering the map fails due to disabled GPU acceleration.
    • Clicking on the tray icon will toggle the window instead of just showing it.
    • Old mullvad log set-level command has been renamed to mullvad log set-rust-log.
    Linux
    • Make all timestamps embedded in .deb and .rpm packages deterministic by deriving them from the git commit being built instead of the time of the build. Required for reproducible builds.
    • Set the BUILDHOST header of .rpm packages to a fixed value instead of the hostname of the build machine. Required for reproducible builds.
    • De-couple mullvad-daemon.service "After=" dependencies from systemd.resolved and NetworkManager.
    • Start mullvad-early-boot-blocking.service before network-pre.target instead of basic.target.
    Windows
    • Sign the uninstaller, Electron binaries, and native modules. Some NSIS binaries are still unsigned.
    • Switch winreg out for windows_registry.
    • Add timeout to device cleanup tasks during installs.
    • Increase timeout on flushing DNS cache.

    Removed

    Windows
    • Stop removing leftover Wintun adapters during installation. Wintun dropped support for adapter pools, so this has not been necessary since 2022.5-beta1.

    Fixed

    • Reject invalid DAITA fraction limits in tunnel config responses before starting the tunnel.
    • Ignore DAITA tunnel config responses unless DAITA was requested.
    • Fix infinite loop of account checks when account ran out of time.
    • Fix IPv6 obfuscation relay selection when the relay's WireGuard endpoint only has IPv4.
    • Fix the device sometimes being incorrectly marked as revoked when the API rejects an expired access token.
    • Fix daemon crashing on startup when migrating settings that contain no WireGuard entry location.
    Windows
    • Preserve the app's own theme colors when Windows high contrast (forced-colors) mode is enabled in order to prevent toggle switches and other custom-styled controls from becoming invisible.
    • Fix the installer UI from looking blurry by making the installer DPI-aware.
    • Wait for the tunnel routes to become usable, and retry the connection to the tunnel config service if the tunnel is not ready yet. This may help with connection failures that occur immediately after the tunnel is set up, when using quantum-resistant tunnels or DAITA.

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Mullvad VPN desktop and mobile app

    Welcome to the Mullvad VPN client app source code repository. This is the VPN client software for the Mullvad VPN service. For more information about the service, please visit our website, mullvad.net (Also accessible via Tor on our onion service).

    This repository contains all the source code for the desktop and mobile versions of the app. For desktop this includes the system service/daemon (mullvad-daemon), a graphical user interface (GUI) and a command line interface (CLI). The Android app uses the same backing system service for the tunnel and security but has a dedicated frontend in android/. iOS consists of a completely standalone implementation that resides in ios/.

    Releases

    There are built and signed releases for macOS, Windows, Linux and Android available on our website and on GitHub. The Android app is also available on Google Play and F-Droid and the iOS version on App Store.

    You can find our code signing keys as well as instructions for how to cryptographically verify your download on Mullvad's Open Source page.

    Platform/OS support

    See Supported Platforms for details on which operating systems, versions and architectures are supported, and which ones are covered by our automated test suite.

    Features

    Here is a table containing the features of the app across platforms. This is intended to reflect the current state of the latest code in git, not necessarily any existing release.

    WindowsLinuxmacOSAndroidiOS
    WireGuard✓✓✓✓✓
    Quantum-resistant tunnels✓✓✓✓✓
    DAITA✓✓✓✓✓
    WireGuard multihop✓✓✓✓✓
    WireGuard over TCP✓✓✓✓✓
    WireGuard over Shadowsocks✓✓✓✓✓
    WireGuard over QUIC✓✓✓✓✓
    Lightweight WireGuard Obfuscation (LWO)✓✓✓✓✓
    Split tunneling✓✓✓✓
    Custom DNS server✓✓✓✓✓
    Content blockers (Ads etc)✓✓✓✓✓
    Optional local network access✓✓✓✓✓*
    Externally audited✓✓✓✓✓

    * Local network is accessible by default on iOS, enabling Force all apps disables LAN access.

    User security, privacy and anonymity

    This app is a privacy preserving VPN client. As such it goes to great lengths to stop traffic leaks. And basically all settings default to the more secure/private option. The user has to explicitly allow more loose rules if desired. See the dedicated security document for details on what the app blocks and allows, as well as how it does it.

    Secure development

    Since the security of the users of the app is a top priority, by extension the security of the development and release process also becomes a top priority. This is something we work actively on.

    OpenSSF Best Practices

    Git signatures

    All merge commits to the main branch must be PGP (gpg) signed in git. This signs off the entire feature branch. The individual commits in the feature branch do not need to be signed, unless they change one or more of the files deemed extra important.

    The list of files requiring signatures to every commit that change them is defined in the verify-locked-down-signatures workflow.

    Audits, pentests and external security reviews

    This app is audited by external security experts and penetration testers every second year. We also carry out feature specific audits for certain security critical features and changes.

    The results of these audits are always made public in their unredacted original form, for full transparency towards the users. See the audits readme for this.

    Moreover, we welcome any individual to review the security of this app and submit any found issue to us. See SECURITY.md for more.

    Checking out the code

    This repository contains submodules needed for building the app. However, some of those submodules also have further submodules that are quite large and not needed to build the app. So unless you want the source code for all submodules you should avoid a recursive clone of the repository. Instead clone the repository normally and then get one level of submodules:

    git clone https://github.com/mullvad/mullvadvpn-app.git
    cd mullvadvpn-app
    git submodule update --init
    

    We sign every merge commit to the main branch as well as our release tags. If you would like to verify your checkout, you can find our developer keys on Mullvad's Open Source page.

    Binaries submodule

    This repository has a git submodule at dist-assets/binaries. This submodule contains binaries and build scripts for third party code we need to bundle with the app, such as Wintun.

    This submodule conforms to the same integrity/security standards as this repository. Every merge commit should be signed. And this main repository should only ever point to a signed merge commit of the binaries submodule.

    See the binaries submodule's README for more details about that repository.

    Building the app

    See the build instructions for help building the app on desktop platforms.

    For building the Android app, see the instructions for Android.

    For building the iOS app, see the instructions for iOS.

    Releasing the app

    See this for instructions on how to make a new release.

    Environment variables used by the service

    • TALPID_FIREWALL_DEBUG - Helps debugging the firewall. Does different things depending on platform:

      • Linux: Set to "1" to add packet counters to all firewall rules.
      • macOS: Makes rules log the packets they match to the pflog0 interface.
        • Set to "all" to add logging to all rules.
        • Set to "pass" to add logging to rules allowing packets.
        • Set to "drop" to add logging to rules blocking packets.
    • TALPID_FIREWALL_DONT_SET_SRC_VALID_MARK - Set this variable to 1 to stop the daemon from setting the net.ipv4.conf.all.src_valid_mark kernel parameter to 1 on Linux when a tunnel is established. The kernel config parameter is set by default, because otherwise strict reverse path filtering may prevent relay traffic from reaching the daemon. If rp_filter is set to 1 on the interface that will be receiving relay traffic, and src_valid_mark is not set to 1, the daemon will not be able to receive relay traffic.

    • TALPID_FIREWALL_DONT_SET_ARP_IGNORE - Set this variable to 1 to stop the daemon from setting the net.ipv4.conf.all.arp_ignore kernel parameter to 2 on Linux when a tunnel is established. The kernel config parameter is set by default, because otherwise an attacker who can send ARP requests to the device running Mullvad can figure out the in-tunnel IP.

    • TALPID_DNS_MODULE - Allows changing the method that will be used for DNS configuration. By default this is automatically detected, but you can set it to one of the options below to choose a specific method.

      • Linux

        • "static-file": change the /etc/resolv.conf file directly
        • "resolvconf": use the resolvconf program
        • "systemd": use systemd's resolved service through DBus
        • "network-manager": use NetworkManager service through DBus
      • Windows

        • iphlpapi: use the IP helper API
        • tcpip: set TCP/IP parameters in the registry
    • TALPID_DISABLE_LOCAL_DNS_RESOLVER - Set this variable to 1 to disable the local DNS resolver (macOS only).

    • TALPID_NEVER_FILTER_AAAA_QUERIES - Set this variable to 1 to never ignore DNS AAAA queries (macOS only).

    • TALPID_FORCE_USERSPACE_WIREGUARD - Forces the daemon to use the userspace implementation of WireGuard.

    • TALPID_DISABLE_OFFLINE_MONITOR - Forces the daemon to always assume the host is online.

    • TALPID_CGROUP2_FS - On Linux, forces the daemon to look for the cgroup2 filesystem at the specified path, instead of /sys/fs/cgroup. The cgroup2 used for split tunneling will be created in this directory.

    • TALPID_NET_CLS_MOUNT_DIR - On Linux, forces the daemon to mount the net_cls controller in the specified directory if it isn't mounted already. This will only have an effect on older systems where cgroup v1 is used for split tunneling.

    • MULLVAD_MANAGEMENT_SOCKET_GROUP - On Linux and macOS, this restricts access to the management interface UDS socket to users in the specified group. This means that only users in that group can use the CLI and GUI. By default, everyone has access to the socket.

    • MULLVAD_BACKTRACE_ON_FAULT - When enabled, if the daemon encounters a fault (e.g. SIGSEGV), it will log a backtrace to stdout, and to daemon.log. By default, this is disabled in release-builds and enabled in debug-builds. Set variable to 1 or 0 to explicitly enable or disable this feature. Logging the backtrace causes heap allocation. Allocation is not signal safe, but here it runs in the signal handler. This is technically undefined behavior and therefore disabled by default. This usually works, but enable at your own risk.

    Development builds only

    • MULLVAD_API_HOST - Set the hostname to use in API requests. E.g. api.mullvad.net.

    • MULLVAD_API_ADDR - Set the IP address and port to use in API requests. E.g. 10.10.1.2:443.

    • MULLVAD_API_DISABLE_TLS - Use plain HTTP for API requests.

    • MULLVAD_CONNCHECK_HOST - Set the hostname to use in connection check requests. E.g. am.i.mullvad.net.

    • MULLVAD_ENABLE_DEV_UPDATES - Enable version checks in development builds.

    Setting environment variables

    Windows

    Use setx from an elevated shell:

    setx TALPID_DISABLE_OFFLINE 1 /m
    

    For the change to take effect, restart the daemon:

    sc.exe stop mullvadvpn
    sc.exe start mullvadvpn
    
    Linux

    Edit the systemd unit file via systemctl edit mullvad-daemon.service:

    [Service]
    Environment="TALPID_DISABLE_OFFLINE_MONITOR=1"
    

    For the change to take effect, restart the daemon:

    sudo systemctl restart mullvad-daemon
    
    macOS

    Use plutil:

    sudo plutil -replace EnvironmentVariables -json '{"TALPID_DISABLE_OFFLINE_MONITOR": "1"}' /Library/LaunchDaemons/net.mullvad.daemon.plist
    

    For the change to take effect, restart the daemon:

    launchctl unload -w /Library/LaunchDaemons/net.mullvad.daemon.plist
    launchctl load -w /Library/LaunchDaemons/net.mullvad.daemon.plist
    

    Environment variables used by the desktop frontend

    • MULLVAD_PATH - Allows changing the path to the folder with the mullvad-problem-report tool when running in development mode. Defaults to: <repo>/target/debug/.
    • MULLVAD_DISABLE_UPDATE_NOTIFICATION - If set to 1, notification will be disabled when an update is available.

    Command line tools for Electron app development

    • $ npm run develop - develop app with live-reload enabled
    • $ npm run lint - lint code
    • $ npm run pack:<OS> - prepare app for distribution for your platform. Where <OS> can be linux, mac or win
    • $ npm test - run tests

    Tray icon on Linux

    The requirements for displaying a tray icon vary between different desktop environments. If the tray icon does not appear, try one of the following methods:

    GNOME

    If you're using GNOME, you might have to install additional GNOME shell extensions to display the tray icon properly.

    We recommend AppIndicator and KStatusNotifierItem Support. It can be installed via GNOME's extension website: https://extensions.gnome.org/extension/615/appindicator-support/

    Other desktop environments

    Try installing one of these packages using the system's package manager:

    • libappindicator3-1
    • libappindicator1
    • libappindicator

    Repository structure

    Electron app and electron-builder packaging assets

    • desktop/packages/mullvad-vpn/
      • assets/ - Graphical assets and stylesheets
      • src/
        • main/
          • index.ts - Entry file for the main process
        • renderer/
          • app.tsx - Entry file for the renderer process
          • routes.tsx - Routes configurator
          • transitions.ts - Transition rules between views
      • tasks/ - Gulp tasks used to build app and watch for changes during development
        • distribution.js - Configuration for electron-builder
      • test/ - Electron GUI tests
    • dist-assets/ - Icons, binaries and other files used when creating the distributables
      • binaries/ - Git submodule containing binaries bundled with the app. See the README in the submodule for details
      • linux/ - Scripts and configuration files for the deb and rpm artifacts
      • pkg-scripts/ - Scripts bundled with and executed by the macOS pkg installer
      • windows/ - Windows NSIS installer configuration and assets

    Building, testing and misc

    • build-windows-modules.sh - Compiles the C++ libraries needed on Windows
    • build.sh - Sanity checks the working directory state and then builds installers for the app

    Mullvad Daemon

    The daemon is implemented in Rust and is implemented in several crates. The main, or top level, crate that builds the final daemon binary is mullvad-daemon which then depend on the others.

    In general one can look at the daemon as split into two parts, the crates starting with talpid and the crates starting with mullvad. The talpid crates are supposed to be completely unrelated to Mullvad specific things. A talpid crate is not allowed to know anything about the API through which the daemon fetch Mullvad account details or download VPN server lists for example. The talpid components should be viewed as a generic VPN client with extra privacy and anonymity preserving features. The crates having mullvad in their name on the other hand make use of the talpid components to build a secure and Mullvad specific VPN client.

    • Cargo.toml - Main Rust workspace definition. See this file for which folders here are daemon Rust crates.
    • mullvad-daemon/ - Main Rust crate building the daemon binary.
    • talpid-core/ - Main crate of the VPN client implementation itself. Completely Mullvad agnostic privacy preserving VPN client library.

    Vocabulary

    Explanations for some common words used in the documentation and code in this repository.

    • App - This entire product (everything in this repository) is the "Mullvad VPN App", or App for short.
      • Daemon - Refers to the mullvad-daemon Rust program. This headless program exposes a management interface that can be used to control the daemon
      • Frontend - Term used for any program or component that connects to the daemon management interface and allows a user to control the daemon.
        • GUI - The Electron + React program that is a graphical frontend for the Mullvad VPN App.
        • CLI - The Rust program named mullvad that is a terminal based frontend for the Mullvad VPN app.

    File paths used by Mullvad VPN app

    A list of file paths written to and read from by the various components of the Mullvad VPN app

    Daemon

    On Windows, when a process runs as a system service the variable %LOCALAPPDATA% expands to C:\Windows\system32\config\systemprofile\AppData\Local.

    All directory paths are defined in, and fetched from, the mullvad-paths crate.

    Settings

    The settings directory can be changed by setting the MULLVAD_SETTINGS_DIR environment variable.

    PlatformPath
    Linux/etc/mullvad-vpn/
    macOS/etc/mullvad-vpn/
    Windows%LOCALAPPDATA%\Mullvad VPN\
    AndroidgetFilesDir()
    Logs

    The log directory can be changed by setting the MULLVAD_LOG_DIR environment variable.

    PlatformPath
    Linux/var/log/mullvad-vpn/ + systemd
    macOS/var/log/mullvad-vpn/
    WindowsC:\ProgramData\Mullvad VPN\
    AndroidgetFilesDir()
    Cache

    The cache directory can be changed by setting the MULLVAD_CACHE_DIR environment variable.

    PlatformPath
    Linux/var/cache/mullvad-vpn/
    macOS/Library/Caches/mullvad-vpn/
    WindowsC:\ProgramData\Mullvad VPN\cache
    AndroidgetCacheDir()
    RPC address file

    The full path to the RPC address file can be changed by setting the MULLVAD_RPC_SOCKET_PATH environment variable.

    PlatformPath
    Linux/var/run/mullvad-vpn
    macOS/var/run/mullvad-vpn
    Windows//./pipe/Mullvad VPN
    AndroidgetNoBackupFilesDir()

    Desktop Electron app

    The desktop Electron app has a specific settings file that is configured for each user. The path is set in the desktop/packages/mullvad-vpn/src/main/gui-settings.ts file.

    PlatformPath
    Linux$XDG_CONFIG_HOME/Mullvad VPN/gui_settings.json
    macOS~/Library/Application Support/Mullvad VPN/gui_settings.json
    Windows%LOCALAPPDATA%\Mullvad VPN\gui_settings.json
    AndroidPresent in Android's logcat

    Icons

    See graphics README for information about icons.

    Locales and translations

    Instructions for how to handle locales and translations are found here.

    For instructions specific to the Android app, see here.

    For instructions specific to the iOS app, see here.

    License

    Copyright (C) 2026 Mullvad VPN AB

    This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

    For the full license agreement, see the LICENSE.md file

    The source code for the iOS app is GPL-3 licensed like everything else in this repository. But the distributed app on the Apple App Store is not GPL licensed, it falls under the Apple App Store EULA.