Setup guide

How to set up a VPN on a Mac

Your Mac needs one free app from the App Store and one file from your dashboard. After that, a click in the menu bar is all it takes to go private.

Before you start

About 5 minutes

  • macOS 12 Monterey or later, Apple silicon or Intel
  • An Apple ID for the free WireGuard app (not needed for IKEv2)
  • Any active plan (Basic, Plus or Pro) with room for one more device
  • Permission to add a VPN configuration (macOS asks once)

SwitchVPN works with free official apps and built-in system clients, so there is no SwitchVPN software to install or update on macOS.

sv-tokyo

Tokyo

Status
Active
On-Demand
Wi-Fi and Ethernet
DNS
Private, in tunnel
Data received
214.6 MiB

On-Demand

Illustration: a working macOS connection in Tokyo. Your own values appear in the dashboard.

Recommended

Set up WireGuard on macOS

The WireGuard app lives in the menu bar, uses little battery on a MacBook and reconnects by itself after sleep.

  1. Register the Mac as a device

    In Dashboard, VPN, choose Add device, name it MacBook or iMac, pick the city you want to appear in, keep WireGuard selected and save the .conf file.

  2. Install WireGuard from the Mac App Store

    Search for WireGuard, published by WireGuard Development Team, and install it.

  3. Import the file

    Open the app, press the plus button at the bottom left of the Manage WireGuard Tunnels window, and choose Import Tunnel(s) from File. Select your .conf.

  4. Approve the macOS prompt

    macOS asks whether WireGuard may add VPN configurations. Choose Allow and confirm with Touch ID or your password.

  5. Connect from the menu bar

    Click the WireGuard icon in the menu bar and select the tunnel name. A check mark means it is active.

Option 2

Set up IKEv2 with the macOS built-in VPN

If you prefer not to install anything, macOS connects over IKEv2 from System Settings.

  1. Choose IKEv2 for the Mac

    Set the protocol to IKEv2 when you add the device. Its panel shows four values to copy: server address, remote ID, username and password.

  2. Open the VPN settings

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

  3. Enter the values

    Display name: SwitchVPN plus the city. Server address and Remote ID: the host from your panel. Leave Local ID empty. User authentication: Username, then the IKEv2 username and password.

    de-frankfurt.edge.switchvpn.shop
  4. Create and connect

    Press Create, then flip the switch next to the new entry. Tick Show VPN status in menu bar for quick access.

Option 3

Use OpenVPN Connect on macOS

Keep this for networks that block UDP. Download the TCP 443 profile from the dashboard, install OpenVPN Connect for macOS from the official OpenVPN website, choose Import Profile, then Upload File, and press Connect.

  1. Save a TCP profile

    Add a device with OpenVPN over TCP 443 and save the .ovpn file to Downloads.

  2. Load it on the Mac

    Drag the .ovpn file onto the Upload File tab and press Connect.

Kill switch on macOS

On Apple devices the WireGuard app protects you through On-Demand: macOS brings the tunnel back up the moment any network appears, so apps are not left on an open connection.

  1. Open the tunnel for editing

    In Manage WireGuard Tunnels, select the tunnel and press Edit.

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

    Leave the SSID option on Any SSID unless you want exceptions such as your home network. Press Save.

  3. Test it

    Turn Wi-Fi off and on. The tunnel should be active again before your browser loads a page.

When you deactivate the tunnel by hand, On-Demand turns off with it. Activate it again to restore automatic protection.

Split tunneling on macOS

The Mac WireGuard app has a built-in way to keep local devices off the VPN, and the dashboard can write any custom list.

  1. Exclude private IPs

    Press Edit on the tunnel and tick Exclude private IPs. Printers, AirPlay speakers and your router page stay reachable on the local network.

  2. Bypass specific addresses

    Add the device again with your own address list in the dashboard, or change AllowedIPs in the editor.

How split tunneling works

Switch city on macOS

Switching city takes a few seconds and keeps your slot.

  1. Pick the new city in the dashboard

    Dashboard, VPN, select this Mac and choose another city.

  2. Import the new file

    Download it, import it, then delete the old tunnel in the WireGuard window. For IKEv2, only the server address and remote ID change.

Browse every server city

macOS VPN troubleshooting

The tunnel turns on and off by itself

Two VPN apps are competing. Disconnect other VPNs in System Settings, VPN, and keep only one active.

IKEv2 shows Authentication failed

Check that User authentication is set to Username and that you used the IKEv2 password from the panel, not your account password.

No handshake on hotel or office Wi-Fi

UDP is likely filtered. Use the OpenVPN TCP 443 profile on that network.

AirDrop or local printing stopped working

Tick Exclude private IPs in the tunnel editor, then reconnect.

macOS setup questions

Is the WireGuard app on the Mac App Store official?

Yes. It is published by the WireGuard project itself and is free. SwitchVPN only supplies the configuration.

Does it work on Apple silicon?

Yes. The WireGuard app and the IKEv2 client run natively on M-series and Intel Macs with macOS 12 or later.

Will the VPN survive sleep?

WireGuard reconnects within a second of wake because it has no session to rebuild. With On-Demand enabled it also resumes after a network change.

Plans that cover macOS

Basic

$2.51 a month

6 devices at once, $60.29 for 24 months

Plus

$3.64 a month

10 devices at once, $87.29 for 24 months

Pro

$6.22 a month

12 devices at once, $149.39 for 24 months

Compare all plan lengths

Guides for your other devices

Protect your macOS today

Top up with crypto, pick Basic, Plus or Pro, and your macOS setup is a few minutes away.