How to Set Up a VPN on a Mac: App Install, Manual Config, Protocols and Leak Testing
A practical, step-by-step walkthrough for macOS — from the one-click app to a hand-built connection in System Settings, plus how to prove your traffic is actually protected.
vpnrank.io is reader-supported: we may earn a commission if you buy through links in this article. This never affects our rankings.

There are two ways to run a VPN on a Mac: install the provider's app and let it configure everything, or build the connection by hand in System Settings. The app route takes about two minutes and handles the kill switch and DNS for you. Manual setup gives you a lightweight, always-there profile with no extra software running.
App install vs. manual configuration: which should you choose?
Most people should install the app — it manages the protocol, kill switch, DNS routing and automatic reconnection without you touching a single setting. Manual configuration in System Settings is the better fit when you want no background software, need a specific server profile, or are configuring a work or self-hosted VPN. Each route has real trade-offs worth understanding before you start.
- Install the app if you use a consumer VPN, want a kill switch and leak protection out of the box, or plan to switch servers and countries often. This is the right choice for streaming and everyday privacy.
- Configure manually if you dislike background apps, are connecting to a corporate or router-hosted VPN, or only ever use one server. macOS has native support for IKEv2, L2TP and Cisco IPsec built directly into the Network panel.
- A hybrid reality: WireGuard and OpenVPN are not natively supported by the macOS Network panel — those protocols require either the provider's app or a dedicated client. If you specifically want WireGuard, the app route is effectively mandatory.
The honest short answer is that the app wins for almost everyone. Manual profiles are elegant and lightweight, but macOS deliberately keeps its built-in VPN client basic: it will bring a tunnel up and down, and little else. It has no kill switch, no automatic server rotation, no protocol choice beyond what Apple ships, and no leak protection you can toggle. Those gaps are exactly the features a good app exists to provide, which is why the manual route is best reserved for the specific cases where you genuinely cannot run one — a locked-down work laptop, a router-hosted tunnel, or a self-hosted server you control.
If you are still deciding on a provider before you set anything up, our editorial best VPN roundup compares the apps that make macOS setup painless, and the VPN Price Index tracks what each one actually costs right now rather than the headline sticker price.
Method 1: Installing the VPN app (the two-minute route)
Installing the app is the fastest and safest path for the vast majority of Mac users. The provider ships a signed macOS package that installs a system extension, so the tunnel keeps working even when the app window is closed. Once it is running you get a menu-bar icon, one-click server switching and automatic protection features that manual profiles simply cannot offer.
- 1Download the macOS app only from the provider's official website or the Mac App Store. Avoid third-party download mirrors, which are a common malware vector.
- 2Open the .dmg or .pkg and drag the app to Applications, or follow the installer. macOS will ask you to approve a system extension or network filter — this is normal and required for the tunnel to work.
- 3Grant the permission in System Settings → Privacy & Security if prompted, then reopen the app.
- 4Sign in with your account, and the app will usually connect you to the fastest nearby server automatically.
- 5Open the app's settings and turn on the kill switch and DNS leak protection — these are often off by default. Pick your protocol here too (see the next section).
One step people rush past is that final one. A freshly installed app will happily connect you and show a reassuring green icon while the two features that actually protect you — the kill switch and DNS leak protection — sit switched off in a settings tab you never opened. Take the extra thirty seconds to enable both before you rely on the connection for anything sensitive. On many apps you will also find a "connect on launch" or "trusted networks" option here, which auto-connects the VPN whenever you join unknown Wi-Fi; on a laptop that travels, that is worth turning on too.
That is genuinely the whole process. The app registers a VPN configuration in macOS on your behalf, so you will also see it appear in System Settings even though you never opened that panel. From here you can watch a stream, connect on public Wi-Fi, or check whether something is available in your region using our Can I Watch tool.
Method 2: Manual configuration in System Settings
Manual setup builds a native macOS VPN profile with no third-party app running in the background. You will need connection details from your provider or IT department first: the server address, your username and password (or a certificate), and any shared secret. The steps below use IKEv2, which is the strongest protocol macOS supports natively and the one most providers recommend for manual profiles.
Step-by-step in the Network panel
- 1Click the Apple menu → System Settings, then select Network in the sidebar (on macOS Ventura and later; older Macs use System Preferences → Network).
- 2Click the … (more) button near the bottom of the Network list and choose Add VPN Configuration → IKEv2.
- 3In Display Name, type anything memorable, for example "Work VPN" or your provider plus city.
- 4Enter the Server Address and, for IKEv2, the Remote ID exactly as your provider lists them — these are case-sensitive and a mismatch is the most common reason a connection fails.
- 5Open Authentication Settings, choose Username (or Certificate), and enter your credentials. Click OK.
- 6Click Create, then toggle the new connection on. When you see Status: Connected, the tunnel is live.
A couple of details save real frustration here. The Local ID field can usually be left blank unless your provider or IT team specifies one; the Remote ID, by contrast, must match exactly what they give you, character for character. If you are handed a configuration profile (a .mobileconfig file) instead of raw settings, you can skip this whole panel — double-click the file and macOS installs the entire VPN definition for you, credentials and all. That is often how corporate VPNs are distributed, and it removes any chance of a typo.
To reach the connection quickly afterward, tick Show VPN status in menu bar so you get a Connect/Disconnect toggle at the top of the screen. One important caveat: a hand-built IKEv2 profile does not include a kill switch. macOS has no native kill-switch toggle, so if you need fail-closed protection you either script it with the built-in packet filter or, more realistically, use the provider's app instead.
Choosing a VPN protocol on macOS
The protocol is the rulebook your Mac and the VPN server use to encrypt and route traffic. It governs speed, stability and how gracefully the connection survives you moving between Wi-Fi and a hotspot. On a Mac you realistically choose between three, and the right answer depends on whether you value raw speed, mobility or maximum compatibility.
- WireGuard — the fastest modern protocol, with a tiny, auditable codebase and excellent throughput for streaming and large downloads. It is the default in most quality apps but requires the app (macOS won't configure it natively).
- IKEv2/IPsec — built into macOS, very stable, and superb at surviving network changes: switch from Wi-Fi to a phone hotspot and the tunnel usually holds without dropping. This is the protocol to pick for a manual profile.
- OpenVPN — the veteran. Slower than WireGuard but extremely reliable and the best at slipping through restrictive firewalls. Worth choosing on a hostile or censored network. Requires a client or the provider's app.
The reason IKEv2 holds a connection so gracefully is a feature called MOBIKE — mobility and multihoming — which lets the tunnel follow your Mac from one network to another without renegotiating from scratch. That is why it reconnects in seconds when you close the lid at a café and reopen it on a phone hotspot. WireGuard is nearly as good at roaming and is markedly faster, but it commits DNS and speed advantages to the app layer; OpenVPN trades speed for the ability to run over TCP on port 443, which is what lets it masquerade as ordinary HTTPS traffic and slip past firewalls that block everything else. None of the three is universally "best" — they are tuned for different problems.
A simple rule: pick WireGuard for everyday speed, IKEv2 if your Mac constantly hops between networks or you are configuring manually, and OpenVPN only when a firewall is actively blocking the others. If you want to see how much a given protocol and server actually cost you in throughput, run a before-and-after check with our VPN speed test.
Enabling the kill switch
A kill switch is your safety net: if the VPN tunnel drops for even a second, it blocks all internet traffic instead of letting your Mac silently fall back to the naked connection and expose your real IP address. This matters most on public Wi-Fi and during large downloads, where a brief reconnection is easy to miss. It is almost always an in-app setting.
- 1Open your VPN app's Settings or Preferences and find the section labelled Kill Switch, Network Lock, or Always-on VPN.
- 2Enable it, and if offered, choose the system-wide option rather than app-specific — this protects everything, not just your browser.
- 3Test it deliberately: connect the VPN, then quit the app or disable the server. Your internet should go dead until you reconnect. If pages still load, the kill switch is not doing its job.
It is worth understanding why the kill switch lives in the app and not in macOS itself. A fail-closed rule has to sit at the firewall layer and know, moment to moment, whether the tunnel is genuinely up — not merely whether an interface is present. macOS exposes the building blocks for this through its packet filter, but it ships no user-facing toggle that wires them to VPN state, so every provider implements the logic inside its own app. That is the single biggest reason a manual profile leaves you exposed during a drop, and the biggest reason privacy-focused users end up on the app route regardless of their feelings about background software.
Remember the earlier warning: a manually configured IKEv2 profile in System Settings has no kill switch. If fail-closed protection is a hard requirement — and for privacy-focused users it should be — the provider's app is the practical way to get it. You can read more about why this feature matters in our guide to VPN privacy features.
Using your Mac VPN to watch from anywhere
Once the VPN is running, one of the most common everyday uses is reaching content that is tied to a region — your home library while travelling, or a service that geo-restricts by country. Connecting to a server in the relevant country changes the location your Mac appears to browse from, which is why a VPN is a staple travel tool for anyone with streaming subscriptions.
- Connect to a server in the country whose library you want, then open the streaming service — order matters, because the site checks your location on load.
- For live sport tied to a national broadcaster, the same trick applies; our sports streaming hub and the dedicated World Cup 2026 guide cover which servers line up with which broadcasters.
- Service-specific quirks are worth reading up on — see our Netflix and BBC iPlayer guides — since each detects VPNs differently.
Always use the app for streaming rather than a manual profile: apps rotate IP addresses and refresh servers when a streaming service blocks one, which a static hand-built connection cannot do. Our broader streaming VPN guide goes into which providers hold up best for this over time.
Verifying there's no DNS or IP leak
A green "connected" icon only tells you the app thinks the tunnel is up — it does not prove your traffic is actually protected. The two things worth checking are whether your real IP address is exposed and whether your DNS queries are still going to your ISP. Both are quick to test and worth doing every time you set up a new connection or switch networks.
How to run the checks
- 1Baseline first: with the VPN off, visit an IP-check site and note your real IP address and location. Also run a DNS leak test and note which servers appear — those will be your ISP's.
- 2Connect the VPN and reload the IP-check page. Your IP and country should now match the VPN server, not your real location.
- 3Re-run the DNS leak test. The DNS servers shown should belong to your VPN provider, not your ISP. If your ISP's servers still appear, you have a DNS leak — enable DNS leak protection in the app, or the app is not tunnelling DNS correctly.
- 4Check WebRTC and IPv6. Browsers can expose your real address through WebRTC even when the VPN is up. Run a WebRTC test and confirm it shows no real IP.
The WebRTC check catches a leak that surprises people because it has nothing to do with the tunnel itself. WebRTC — the technology behind in-browser video calls — asks your operating system directly for your network addresses so it can set up peer connections, and those requests can slip outside the VPN entirely. Chrome, Firefox, Edge and Opera ship with it enabled by default, so a Mac with a perfectly working tunnel can still hand your real IP to a website through the browser. Safari is more conservative about disclosing local addresses, which is one reason it is a safer default browser while a VPN is up.
If any of these fail, it is usually fixable in settings rather than a reason to abandon the VPN. Our glossary explains the mechanics in plain terms — start with the DNS leak entry, then the WebRTC leak one. A quirk specific to macOS: some VPNs stop tunnelling DNS after a sleep-wake cycle, so it is worth re-testing after your Mac wakes from sleep or you change Wi-Fi networks.
Common macOS VPN problems and quick fixes
Most Mac VPN issues come down to a handful of predictable causes: a mistyped server address, a missing system-extension permission, or an old configuration conflicting with a new one. Before you contact support, these fixes resolve the large majority of connection failures and slow speeds on macOS without any deep technical work.
- Won't connect (manual IKEv2): re-check the Server Address and Remote ID for typos — they are case-sensitive. A single wrong character will silently fail.
- App can't establish a tunnel: go to System Settings → Privacy & Security and approve the blocked system extension, then restart the app.
- Slow speeds: switch protocol to WireGuard, pick a closer server, and re-measure with a speed test. Distance to the server is usually the culprit.
- Conflicting configs: if you tried both the app and a manual profile, remove the unused one from the Network panel so they don't fight over the tunnel.
- DNS leak after sleep: disconnect and reconnect the VPN after your Mac wakes, or enable the app's auto-reconnect setting.
If you also run the VPN on other devices — a home router to cover everything at once, or an Android TV for the living room — the protocol and leak-testing principles here carry over directly, even though the setup screens differ.
Frequently asked questions
Does macOS have a built-in VPN, or do I need an app?
macOS has native support for IKEv2, L2TP and Cisco IPsec that you can configure by hand in System Settings → Network — no app required. However, it does not natively support WireGuard or OpenVPN, and it has no built-in kill switch. For those features, and for one-click server switching, you need the VPN provider's app.
How do I set up a VPN on my Mac without an app?
Open System Settings → Network, click the more (…) button, and choose Add VPN Configuration → IKEv2. Enter the display name, server address and remote ID from your provider, add your credentials under Authentication Settings, then click Create and toggle it on. Note that a manual profile has no kill switch.
Which VPN protocol is best on a Mac?
WireGuard is fastest for everyday use and streaming but requires the provider's app. IKEv2 is built into macOS, extremely stable, and best if you configure manually or switch networks often. OpenVPN is slower but the most reliable on restrictive or censored networks. Most users should let the app default to WireGuard.
Does a Mac VPN have a kill switch?
macOS has no native kill switch, and a manually configured VPN profile in System Settings does not include one. The kill switch is provided by the VPN app itself — enable it in the app's settings, ideally the system-wide option. Test it by disconnecting the server; your internet should cut out entirely until reconnection.
How do I know if my Mac VPN is actually working?
A connected icon isn't proof. Check your public IP on an IP-lookup site — it should show the VPN server's country, not your real one. Then run a DNS leak test: the servers shown should belong to your VPN provider, not your ISP. Also run a WebRTC test to confirm your browser isn't exposing your real address.
Why does my Mac VPN leak DNS after it wakes from sleep?
This is a known macOS quirk: some VPNs stop tunnelling DNS queries correctly after a sleep-wake cycle or a network change, so requests fall back to your ISP. The fix is to disconnect and reconnect the VPN after your Mac wakes, enable the app's auto-reconnect and DNS leak protection settings, and re-run a leak test.
Can I use a manually configured Mac VPN for streaming?
You can, but it is not ideal. Streaming services actively block VPN IP addresses, and provider apps rotate and refresh servers to stay ahead of those blocks. A static, hand-built profile uses one fixed server that, once blocked, stops working. For reliable streaming on a Mac, use the provider's app rather than a manual configuration.
The best VPNs of 2026, ranked
Now you know how — here are the VPNs we recommend, independently tested and ranked for speed, streaming, privacy and value. Any of them works for everything in this guide.
ExpressVPN Ultra fast & secure. Great for privacy, downloads, and everyday browsing on all your devices. 24/7 live chat support.
ExpressVPN Ultra fast & secure. Great for privacy, downloads, and everyday browsing on all your devices. 24/7 live chat support.

IPVanish Fast speeds with unlimited device connections. Strong no-logs privacy and 24/7 live chat support. Great for families.

IPVanish Fast speeds with unlimited device connections. Strong no-logs privacy and 24/7 live chat support. Great for families.
NordVPN Excellent speeds with one of the largest server networks. Strong security features and easy-to-use apps. 24/7 live chat support.
NordVPN Excellent speeds with one of the largest server networks. Strong security features and easy-to-use apps. 24/7 live chat support.
Proton VPN Swiss-based VPN with strong privacy focus. Audited no-logs policy and open-source apps. Great for privacy-conscious users.
Proton VPN Swiss-based VPN with strong privacy focus. Audited no-logs policy and open-source apps. Great for privacy-conscious users.
CyberGhost Fast speeds and strong privacy tools. Simple apps, automatic WiFi protection, and 24/7 live chat support.
CyberGhost Fast speeds and strong privacy tools. Simple apps, automatic WiFi protection, and 24/7 live chat support.
TotalVPN Affordable VPN with strong privacy and reliable speeds. Easy-to-use apps for all major devices. No-logs policy.
TotalVPN Affordable VPN with strong privacy and reliable speeds. Easy-to-use apps for all major devices. No-logs policy.
Private Internet Access High-speed VPN with a large server network and advanced security settings. Ad blocker included and 24/7 live chat support.
Private Internet Access High-speed VPN with a large server network and advanced security settings. Ad blocker included and 24/7 live chat support.
Surfshark Unlimited device connections at a budget-friendly price. Includes ad blocker and strong privacy tools. Great value for money.
Surfshark Unlimited device connections at a budget-friendly price. Includes ad blocker and strong privacy tools. Great value for money.
Rankings are based on our independent testing methodology. We evaluate speed, privacy, security features, and value for money. We may earn affiliate commissions from links on this page, which helps fund our testing — this does not influence our rankings.


