Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mullvad/mullvadvpn-app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Themullvad tunnel command manages tunnel configuration including MTU, quantum resistance, DAITA, allowed IPs, key rotation, and IPv6 settings.
Syntax
Subcommands
get
Display current tunnel configuration:set
Configure tunnel options:Set Options
mtu
Configure tunnel MTU (Maximum Transmission Unit):<VALUE>- MTU value in bytes (e.g., 1380, 1420), or “any” for automatic
quantum-resistant
Configure quantum-resistant key exchange:auto- Automatically select based on Mullvad recommendationson- Always use quantum-resistant tunnelsoff- Never use quantum-resistant tunnels
daita
Enable or disable DAITA (Defense against AI-guided Traffic Analysis):daita-direct-only
Configure whether DAITA should only work on direct connections:allowed-ips
Specify custom allowed IPs for WireGuard tunnels:<IP_RANGES>- Comma-separated IPs and CIDR ranges, or empty string to reset
- Single IPs:
192.168.1.1 - CIDR ranges:
10.0.0.0/24,fd00::/8 - Multiple:
10.0.0.0/24,192.168.1.1,fd00::/8 - Reset: “ (empty string)
rotation-interval
Set WireGuard key rotation interval:<HOURS>- Number of hours between key rotations, or “any” for default
rotate-key
Immediately rotate the WireGuard key:ipv6
Enable or disable IPv6 in the tunnel:Examples
View Current Configuration
Set MTU
Set specific MTU:Configure Quantum Resistance
Enable quantum resistance:Enable DAITA
Configure Allowed IPs
Route only specific networks:Key Rotation
Set rotation interval to 7 days:IPv6 Configuration
Enable IPv6:WireGuard Key Management
The tunnel command displays information about your current WireGuard key:- Public key - Your device’s public WireGuard key
- Created - When the key was generated
- Rotation interval - How often the key is automatically rotated
rotate-key.
Quantum Resistance
Quantum-resistant tunnels use post-quantum cryptography to protect against future quantum computers. The three states are:- auto - Uses quantum resistance when Mullvad recommends it
- on - Always establishes quantum-resistant tunnels
- off - Uses standard WireGuard without post-quantum cryptography
DAITA (Defense against AI-guided Traffic Analysis)
DAITA provides additional protection against advanced traffic analysis:- Adds cover traffic to mask patterns
- Helps defend against AI-powered traffic analysis
- May slightly increase bandwidth usage
Allowed IPs
By default, WireGuard routes all traffic (0.0.0.0/0, ::/0) through the tunnel. Custom allowed IPs let you:
- Route only specific networks through VPN
- Implement split tunneling at IP level
- Exclude certain destinations from VPN
10.0.0.0/24 valid, 10.0.0.1/24 invalid).
Related Commands
- relay - Configure relay selection
- connect - Connect with current tunnel settings
- dns - Configure DNS servers
- split-tunnel - Configure application split tunneling
Exit Status
| Code | Description |
|---|---|
| 0 | Configuration updated successfully |
| 1 | Invalid configuration or update failed |
Notes
- MTU affects packet size and can impact performance on some networks
- Quantum resistance may slightly increase connection overhead
- Key rotation happens automatically in the background
- Custom allowed IPs require careful configuration to avoid connectivity issues
- IPv6 setting affects both tunnel and relay selection
Source Reference
Implementation:mullvad-cli/src/cmds/tunnel.rs