Siirry pääsisältöön

Viscosity on macOS

Other VPN software OpenVPN Installation macOS Desktop 

Viimeksi päivitetty:

This guide will help you connect to Mullvad VPN servers using the OpenVPN client Viscosity on your macOS.

Set-up instructions

This guide was verified with macOS 13.1 and Viscosity 1.10.4 (1611).

1. Download Mullvad configuration file

  1. Visit our configuration file generator page to download a configuration file.
  2. Enter your account number and choose your configuration options. Select Android/ChromeOS as the platform and not macOS.
  3. Download the file.

2. Install Viscosity

  1. Download and install Viscosity.
  2. Open the folder where the file was downloaded and double-click the .dmg file.
  3. Follow the on-screen installation instructions.

3. Import configuration file

  1. Click on the Viscosity icon up in the menu bar and choose Preferences...
  2. In the pop-up window, click the plus sign found in the bottom right-hand corner, then choose Import Connection > From File...
  3. In the new window, navigate to the folder where you saved the configuration file, click on the .ovpn file and then click Open.
  4. Click OK in the Connection Imported dialog box.

4. Connect to Mullvad

  1. Click on the Viscosity icon up in the menu bar and choose the Mullvad server that you imported.
  2. Follow any on-screen instructions until you are connected.
  • For Username, enter your Mullvad account number without any spaces.
  • For Password, use "m".

How to add firewall rules (optional)

The following instructions will block everything in and out except via the IP address specified.

  1. Open the file /etc/pf.conf and edit it so that it contains the following rules (the ordering is important!), replacing xxx.xxx.xxx.xxx with the IP address of the Mullvad server you wish to use.
    block drop all
    pass on lo0
    pass on utun0
    pass out proto udp from any to xxx.xxx.xxx.xxx port 1300
  2. Once completed, open a terminal window and run sudo pfctl -f /etc/pf.conf to import the rules.
  3. Reboot your computer to activate these changes.
  4. The firewall is turned off by default. Turn it on by running sudo pfctl -e.

Is your browser leaking?

Even while you're connected to Mullvad, your browser could still be leaking information and therefore jeopardizing your privacy. Visit our Connection check to get a quick overview of your connection status.