Settings Directory
The daemon stores its settings in a platform-specific directory. This location can be customized using theMULLVAD_SETTINGS_DIR environment variable.
Default Paths
| Platform | Path |
|---|---|
| Linux | /etc/mullvad-vpn/ |
| macOS | /etc/mullvad-vpn/ |
| Windows | %LOCALAPPDATA%\Mullvad VPN\ |
| Android | getFilesDir() |
On Windows, when the daemon runs as a system service,
%LOCALAPPDATA% expands to C:\Windows\system32\config\systemprofile\AppData\Local.Customizing Settings Directory
You can override the default settings directory by setting theMULLVAD_SETTINGS_DIR environment variable. See Environment Variables for platform-specific instructions.
Settings Patch Format
Mullvad settings patch is a JSON format used to apply changes to app settings. This makes it easy to share or distribute useful configurations, such as optimizations for censored locations.Format Structure
A patch consists of a JSON object where each key refers to a setting to be edited. The type of value and merge strategy depend on the specific setting.Important Considerations
Supported Settings
Relay Overrides
The relay IP override setting allows you to specify custom IP addresses for specific relay servers. Example:- Overrides for hostnames not present in the array remain unchanged
- For any given hostname, only specified overrides change
- Overrides that are specified are added or replaced
- There is no way to remove an existing override without replacing it
Applying Patches
You can apply settings patches using the Mullvad CLI:Versioning and Compatibility
Patches are not versioned, as backward compatibility is not considered critical. However, compatibility should not be broken without good reason. Not all platforms support all settings at all times. If a setting is not supported on your platform, the entire patch will be rejected.Security Considerations
Related Resources
- Environment Variables - Configure daemon behavior
- File Paths - All file locations used by the app