# How do I set up WireGuard on a Mac?

> Set up WireGuard on a Mac against your own TunnelVPS server: Mac App Store app, tunnel file import, on-demand rules and the command-line option.

- URL: https://tunnelvps.com/guides/wireguard-macos/
- Last updated: 2026-11-16
- Publisher: TunnelVPS (https://tunnelvps.com)

The WireGuard app from the Mac App Store, a tunnel file copied from the TunnelVPS server, and the on-demand rules that switch it on by network.

**Quick answer — How do I set up WireGuard on a Mac?**

Install WireGuard from the Mac App Store, as wireguard.com lists it, copy the Mac's `.conf` file from the **TunnelVPS** server with `scp`, and import it. macOS asks once to add the VPN configuration. On-demand rules can bring the tunnel up on any Wi-Fi but the home one. Setup takes 5 steps.

**In brief**

- **App**: WireGuard from the Mac App Store.
- **Configuration**: a `.conf` file copied with `scp` from Terminal.
- **On demand**: rules by Wi-Fi network or Ethernet.
- **Alternatives**: Outline and AmneziaVPN have macOS apps.

## What are the steps on a Mac?

*WireGuard setup on macOS against a TunnelVPS server, 5 steps*

| Step | Where | What to do |
| --- | --- | --- |
| 1 | TunnelVPS server | Add a `[Peer]` for the Mac and write its client file. |
| 2 | Terminal | Copy the file with `scp`. |
| 3 | Mac App Store | Install WireGuard. |
| 4 | WireGuard app | Import the tunnel from the file. |
| 5 | macOS prompt | Allow the VPN configuration, then activate. |

## How do I copy the tunnel file to the Mac?

**Use `scp` in Terminal with the same SSH key that opens the server.** macOS ships with the OpenSSH client, so nothing extra is needed. The file lands in the Downloads folder; delete it there after the import, since it holds the Mac's private key.

*Copy the Mac's client file from the server (Terminal)*

```bash
scp root@203.0.113.10:/etc/wireguard/clients/mac.conf ~/Downloads/mac.conf
```

## How do I import and switch on the tunnel?

**Open WireGuard, import the tunnel from the file, allow the VPN configuration when macOS asks, then activate.** The tunnel then also appears in the menu bar and in the VPN section of System Settings. The app shows the latest handshake and the bytes sent and received, which confirm the tunnel works.

## Can the Mac switch the tunnel on by itself?

**Yes: on-demand rules bring the tunnel up on chosen Wi-Fi networks or on Ethernet.** A laptop that travels can keep the tunnel off at home and on everywhere else. The rules sit in the tunnel's settings inside the app; wording may differ between app versions.

## Is there a command-line option for advanced users?

**Yes: Homebrew users can install `wireguard-tools` and run `wg-quick`, the same tool as on the server.** That suits a Mac used as a development machine, or scripts that bring tunnels up and down. Most users are better served by the App Store app, which handles the system VPN settings. The [WireGuard VPS page](https://tunnelvps.com/wireguard-vps/ "What is a WireGuard VPS and what does it cost?") covers the server side in more depth.

## Which other VPN apps run on macOS?

**TunnelVPS read the WireGuard, Outline and Amnezia pages on 16 November 2026: Outline and AmneziaVPN both list a macOS app, and Outline Manager, the tool that sets up an Outline server, also runs on macOS.** Each app talks to the same TunnelVPS server, so one server can serve WireGuard to most devices and a second protocol to the one that needs it. The [Outline VPS page](https://tunnelvps.com/outline-vps/ "What is an Outline VPS and how is it set up?") and the [AmneziaWG VPS page](https://tunnelvps.com/amneziawg-vps/ "What is an AmneziaWG VPS and when is it needed?") explain how each is installed on the server side.

## Which TunnelVPS plan suits a Mac user?

**Solo ($2.25 a month on 12 months) covers a Mac and an iPhone; Duo ($5.25) adds room for Outline next to WireGuard.** Every plan has one IPv4 address, an IPv6 /64 and a monthly traffic allowance, and costs the same in all six cities. Solo, Duo and Home start at 3 months. The [pricing page](https://tunnelvps.com/pricing/ "How much does a TunnelVPS VPN server cost?") shows each rental length, and the [traffic guide](https://tunnelvps.com/how-much-traffic-does-a-vpn-use/ "How much traffic does a personal VPN use in a month?") estimates a month of use by device.

## Mac questions

### Does WireGuard run on Apple silicon Macs?

The Mac App Store app is the client wireguard.com lists for macOS; it installs on current Macs like any App Store app.

### Can the Mac and the iPhone share one configuration?

They should not. Give each device its own key pair and tunnel address, so either can be removed alone.

### Does the tunnel survive sleep?

WireGuard re-establishes the session after the Mac wakes, usually within seconds of the first packet.

### How do I check that the Mac uses the tunnel?

With the tunnel active, open any page that shows the public IP address: it should match the server address in the TunnelVPS dashboard. The app also shows a recent handshake time.

### Can a Mac use Outline instead?

Yes. Outline has a macOS client, and Outline Manager for macOS sets up the server.

**Verdict**

- **The Mac App Store app with on-demand rules** fits a laptop that moves between home and public networks.
- **`wireguard-tools` from Homebrew** suits users who script their tunnels.

## Sources

1. [WireGuard: installation and client apps](https://www.wireguard.com/install/) — WireGuard (read 2026-11-16)
2. [WireGuard: quick start (keys, peers)](https://www.wireguard.com/quickstart/) — WireGuard (read 2026-11-16)
3. [Outline: get started](https://getoutline.org/get-started/) — Outline Foundation (read 2026-11-16)
4. [AmneziaVPN client: platforms and protocols](https://github.com/amnezia-vpn/amnezia-client) — Amnezia (read 2026-11-16)

**Get the server first** Solo covers a Mac and a phone with 2 TB a month, at $2.25 a month on 12 months. [Order Home for 12 months](https://tunnelvps.com/app/checkout/?plan=home&term=12m&image=ubuntu-24.04&from=guides-wireguard-macos&lang=en) · [Install WireGuard on the server](https://tunnelvps.com/help/install-wireguard-in-one-command/ "How do I install WireGuard on my TunnelVPS server?")

---

TunnelVPS: TunnelVPS rents Linux KVM servers for a personal VPN (WireGuard, Outline or AmneziaWG) in New York, Dallas, Los Angeles, London, Amsterdam and Frankfurt, paid in crypto with no ID document. 5 plans from 2 to 16 GB of RAM and 2 to 6 TB of traffic a month cost the same in all six cities; on the 12-month term each is priced at least 25% under a named comparable plan of a no-KYC crypto host, read on 16 November 2026. The operator is DomaineGoat LLC, Panama.
