How to set up a VPN on a Mac

Connect your Mac to a VPN using your provider's app from the App Store, or add a VPN configuration directly in macOS System Settings.

Before you start

  • An account with a VPN provider you trust
  • Your Mac administrator password
  • For the manual method: server address, remote ID and sign-in details from your provider
  • macOS kept up to date (System Settings → General)

Not sure which provider to use yet? Start with how to choose a trustworthy VPN.

Where to find VPN settings in macOS
  1. Apple menu
  2. System Settings
  3. VPN

Tip: to see VPN status at a glance, open System Settings → Control Center and set VPN to Show in Menu Bar.

Set up a VPN on a Mac with your provider's app

The provider's app is the easiest option and usually includes a kill switch, DNS leak protection and modern protocols such as WireGuard.

  1. Get the official app

    Open the App Store, search for your provider's official app and add it. Check that the developer name matches your provider.

  2. Sign in

    Open the app from Launchpad or the Applications folder and sign in.

  3. Allow VPN configurations

    When macOS asks to add VPN configurations, click Allow and confirm with your password or Touch ID.

  4. Approve the system extension if asked

    Some VPN apps need a network extension. If prompted, approve it in System Settings → Privacy & Security or General → Login Items & Extensions.

  5. Connect

    Choose a nearby server and click Connect. Turn on the kill switch and auto-connect in the app's settings.

Set up a VPN manually in macOS System Settings

Use this method for IKEv2, L2TP over IPSec or IPSec details from your provider or employer. macOS does not include a built-in WireGuard or OpenVPN client.

macOS System Settings VPN pane with the Add VPN Configuration menu open, showing IKEv2, L2TP over IPSec and IPSec
Illustration: System Settings → VPN → Add VPN Configuration in macOS. Menu names and layout may differ slightly on your device.
  1. Open VPN settings

    Go to System Settings → VPN, click Add VPN Configuration and choose IKEv2 (or the type your provider specifies).

  2. Enter the details

    • Display name: any name
    • Server address and Remote ID: from your provider
    • Local ID: often left empty
    • User authentication: Username, then enter your user name and password
  3. Create and connect

    Click Create, then turn on the switch next to the new configuration.

How to check the VPN is working on a Mac

  1. Check the status

    System Settings → VPN shows Connected, and the menu bar icon (if enabled) shows a connection timer.

  2. Check from Terminal

    Open Terminal and run:

    scutil --nc list

    Your VPN configuration should be listed as (Connected). Provider apps that use their own network extension may not appear here; check the app instead.

  3. Check DNS

    Run:

    scutil --dns

    The first resolvers listed should belong to your VPN provider.

For a complete set of leak tests, see how to check if your VPN is working.

Recommended Mac VPN settings

SettingWhere to find itWhy it matters
Kill switchProvider app settingsStops traffic if the VPN drops.
Open at loginProvider app settings, or System Settings → General → Login ItemsReconnects after every restart.
VPN in menu barSystem Settings → Control CenterShows at a glance whether you are protected.
FirewallSystem Settings → Network → FirewallBlocks unwanted incoming connections on public Wi-Fi.

Fixing common Mac VPN problems

ProblemWhat to try
“The VPN server did not respond”Check the server address and remote ID, try another server, or switch from IKEv2 to the provider's app.
The app cannot connect after a macOS updateOpen the app again and re-approve VPN configurations and extensions when prompted, then restart the Mac.
Connected, but websites do not loadDisconnect, turn Wi-Fi off and on, and reconnect. Turn off other VPN, proxy or content-filter tools that may conflict.
Slow speedsChoose a nearby server and use WireGuard in the provider's app.

Mac VPN questions

Does macOS have a built-in VPN?

macOS has a built-in VPN client for IKEv2, L2TP over IPSec and IPSec connections, but no VPN service. You still need a provider or a work VPN server.

Is iCloud Private Relay a VPN?

Not exactly. iCloud Private Relay, part of iCloud+, hides your IP address mainly for Safari browsing. A VPN protects traffic from all apps.

Will a VPN slow down my Mac?

Only slightly in most cases. A nearby server and WireGuard keep the slowdown small.

Sources and official documentation

If your screen differs from our description, the official documentation takes precedence.

Ready to protect your connection?

Follow our step-by-step guide to choose a trustworthy provider, set up your device and confirm that your VPN is working.

GET VPN