mullvad
Connect to Mullvad VPN servers
TLDR
Link your Mullvad account with the specified account number
Enable LAN access while VPN is on
Establish the VPN tunnel
Check status of VPN tunnel
Check the account expiration date and obtain the device name
SYNOPSIS
mullvad [OPTIONS]
PARAMETERS
--help
Show help message and exit.
--version
Show version and exit.
account
Manage the Mullvad account.
relay
Manage relay selection.
status
Check the connection status.
connect
Connect to the VPN.
disconnect
Disconnect from the VPN.
set
Set various settings.
dns
Manage the DNS settings.
firewall
Manage the firewall.
location
Set/Check VPN location
DESCRIPTION
The mullvad command provides a command-line interface to interact with the Mullvad VPN service. It allows users to connect to, disconnect from, and manage their Mullvad VPN connection directly from the terminal. This includes selecting servers based on various criteria (country, city, exit IP), managing the firewall, checking account and connection status, configuring the application settings and performing DNS leak tests.
The command is primarily used on Linux systems without a graphical user interface (GUI), such as servers or advanced workstations. It is also useful for scripting and automation. This tool focuses on privacy and security while providing a functional command-line interface. It aims to be a simple and secure way to connect to Mullvad VPN without relying on a GUI. The Mullvad VPN client, including the command-line interface, is typically open-source, allowing for independent security audits and verification.
CAVEATS
The mullvad command requires the Mullvad VPN application to be installed and configured on the system. It also requires root privileges for certain operations, such as managing the firewall. Ensure that you understand the implications of each command before executing it, as misconfiguration can compromise your security.
AUTHENTICATION
The mullvad command primarily uses the Mullvad account number for authentication. Ensure your account is active and you have the correct number. This is obtained from the Mullvad website. The command offers the ability to set the account directly via the command line.
FIREWALL MANAGEMENT
The mullvad firewall command is crucial for preventing leaks when the VPN connection drops. It configures the system's firewall (typically iptables or similar) to block all traffic except that which goes through the VPN tunnel. Ensure you understand the implications before enabling and disabling it.
EXAMPLES
mullvad connect - Connect to the best available Mullvad server.
mullvad status - Check connection status.
mullvad disconnect - Disconnect from VPN.
HISTORY
The mullvad command-line interface was developed as part of the Mullvad VPN project to provide a headless alternative to the GUI application. It allows users on servers and other systems without a GUI to easily manage their VPN connection. It is constantly evolving with new features and improvements based on user feedback and security audits.