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 disconnect command terminates the active VPN connection and returns your system to its normal networking state.
Syntax
Options
| Option | Description |
|---|---|
-w, --wait | Wait until disconnected before exiting |
-h, --help | Print help information |
Behavior
When you runmullvad disconnect:
- The command sends a disconnect request to the Mullvad daemon
- The VPN tunnel is torn down
- Your system returns to using regular network connections
- If lockdown mode is disabled, normal internet access resumes
Examples
Basic Disconnect
Disconnect from the VPN without waiting:Wait for Disconnection
Disconnect and wait until fully disconnected:Disconnect with Short Option
Related Commands
- connect - Connect to a VPN relay
- status - Check current connection status
- lockdown - Configure network blocking when disconnected
- auto-connect - Control automatic connection on startup
Exit Status
| Code | Description |
|---|---|
| 0 | Disconnect initiated successfully (or completed if --wait used) |
| 1 | Failed to disconnect |
Notes
- If lockdown mode is enabled, network traffic will remain blocked even after disconnecting
- The disconnect command records the reason as “mullvad disconnect” in daemon logs
- Auto-connect settings are not affected by manual disconnection
- To prevent automatic reconnection, see auto-connect
Source Reference
Implementation:mullvad-cli/src/cmds/tunnel_state.rs:33