Mac setup

How to set up a VPN on Mac

A MacBook moves between home, office and cafe networks all day. Set it up once with a file from your dashboard and it stays protected on each of them.

What you need

About 5 minutes, macOS 12 Monterey or later

  • A Mac on macOS 12 Monterey or later, Apple silicon or Intel
  • An active MobileVPN plan with a free device slot
  • An Apple ID for the Mac App Store, only for the WireGuard method
  • UDP 51820, UDP 500 and 4500 or TCP 443 open on the network

Pick a method

No MobileVPN software

Official WireGuard, OpenVPN or system clients only

Move city any time

Same slot, new file or code

Kill switch ready

Steps for this platform below

Recommended

WireGuard on Mac with a .conf file

WireGuard sits in the menu bar, starts with the Mac and offers On-Demand rules per network type.

  1. Download the file

    In Account, VPN, Add device, call the device "MacBook", pick a city, choose WireGuard and press .conf file once the plan is active.

  2. Install WireGuard

    Get WireGuard from the Mac App Store.

  3. Import the tunnel

    Click the WireGuard icon in the menu bar, choose Manage Tunnels, then Import tunnel(s) from file and select the download.

  4. Allow the VPN configuration

    macOS asks to add a VPN configuration. Click Allow and enter your Mac password.

  5. Activate

    Press Activate. The menu bar icon fills in while the tunnel runs.

No app needed

IKEv2 in macOS System Settings

Use the client macOS ships with when you would rather not add an app, for example on a company MacBook.

  1. Create an IKEv2 device

    Add the Mac in the dashboard with IKEv2. Keep the server address and remote ID at hand, plus the username and password once they are issued, shortly after activation.

  2. Open VPN settings

    macOS 13 or later: System Settings, VPN, Add VPN Configuration, IKEv2. macOS 12: System Preferences, Network, the + button, Interface VPN, VPN Type IKEv2.

  3. Enter the values

    Fill in the fields from the table below and click Create (or Authentication Settings, then OK, on macOS 12).

  4. Connect

    Turn the new VPN on. Tick Show VPN status in menu bar for one-click access later.

Values to type for Built-in IKEv2 on Mac
FieldWhat to enter
Display namee.g. MobileVPN Chicago
Server addressus-chicago.node.mobilevpn.shop (your value from the panel)
Remote IDThe remote ID from the panel
Local IDLeave empty
User authenticationUsername
Username and PasswordThe IKEv2 username and password of this Mac

Method 3

OpenVPN Connect on Mac

Reach for OpenVPN on networks that only pass web traffic. Its TCP 443 profile is the most likely to work behind a strict firewall.

  1. Download an .ovpn file

    Add the Mac with OpenVPN and choose UDP 1194 or TCP 443.

  2. Install OpenVPN Connect for macOS

    Download it from the official OpenVPN website and allow its helper when macOS asks.

  3. Import and connect

    Drag the .ovpn file onto the app window, click Connect and allow the VPN configuration.

Kill switch on your Mac

On a Mac, WireGuard On-Demand starts the tunnel automatically on Wi-Fi and Ethernet, so the laptop is never on a network unprotected after sleep or a move.

  1. Open Manage Tunnels

    From the WireGuard menu bar icon.

  2. Edit the tunnel

    Select it and click Edit.

  3. Tick On-Demand for Ethernet and Wi-Fi

    Click Save. The tunnel now comes up on its own when the Mac wakes or joins a network.

For a stricter setup on a fixed office network, combine On-Demand with the macOS firewall, or protect that network at the router.

What the kill switch protects

Split tunneling on your Mac

macOS split tunneling works by address. The usual need is reaching a printer, NAS or AirPlay speaker at home while browsing through the VPN.

  1. Edit the tunnel in WireGuard

    Manage Tunnels, select the tunnel, Edit.

  2. Tick Exclude private IPs

    Local addresses then bypass the tunnel.

  3. Need more control?

    Edit the AllowedIPs line: only the address ranges listed there go through MobileVPN.

Split tunneling explained

Mac VPN not working? Fixes

"The VPN configuration could not be saved"

macOS needs your password to add VPN configurations. Remove the tunnel, import it again and accept the prompt.

No internet after waking from sleep

Deactivate and activate the tunnel once. Turning on On-Demand avoids this in the future.

Corporate VPN and MobileVPN together

Two full tunnels conflict. Run one at a time, or ask your IT team which addresses their VPN must handle.

Mac VPN questions

Does MobileVPN work on Apple silicon Macs?

Yes. WireGuard, OpenVPN Connect and the built-in IKEv2 client all run natively on M-series and Intel Macs.

Can I keep the VPN on when the lid is closed?

The tunnel pauses during sleep like every network connection and returns on wake. With On-Demand on, it returns before apps reconnect.

Is the Mac App Store version of WireGuard official?

Yes. It is published by WireGuard Development Team, the same authors as the iPhone app.

VPN plans for your Mac

Go

$2.51 a month

6 devices, $60.29 for 24 months

Saver

$1.50 a month

10 devices, $40.50 for 27 months

Plus

$3.64 a month

10 devices, $87.29 for 24 months

Pro

$6.22 a month

12 devices, $149.39 for 24 months

Compare plans and lengths

Other device guides

Protect your Mac tonight

Top up in crypto, buy a plan, and your Mac gets its own slot, file and city.