Insights

How to set up a WireGuard VPN on a Mac

Import your provider or administrator's WireGuard .conf file in the Mac app, activate the tunnel, and verify access to your private service.

Illustration of aluminum MacBook with paper feed slot.
On this page

Install the official WireGuard app from the Mac App Store and get a .conf file for your Mac from your provider or network administrator. In WireGuard, choose Import Tunnel(s) from File…, import the file, click Allow if macOS asks, then select the tunnel and click Activate. To check that it works, open the private service you need to use.

In short:

  • Get the right file. Ask your provider or network administrator for a profile made for your Mac.
  • Start the tunnel. Import the .conf file and activate the tunnel in WireGuard.
  • Check private access. Try the service from a network where you normally can't reach it.

Import the file and turn on the tunnel

  1. Install and open WireGuard. Get the official app from the Mac App Store.
  2. Choose the import option. Click the WireGuard icon in the macOS menu bar and choose Import Tunnel(s) from File….
  3. Select your .conf file. Click Import, then click Allow if macOS asks you to approve the configuration.
  4. Activate the tunnel. Select the tunnel you just imported and click Activate.

Get the right file for your Mac

If you don't have a .conf file, ask your virtual private network (VPN) provider or network administrator for a WireGuard profile made for your Mac. If work gave you a private portal address but no profile, ask its network administrator for the file instead of guessing the connection settings or copying a profile from another device.

Keep the file private and use it only on the device it was made for. Don't paste it into a support chat, even when asking for help with the connection.

Check that your private service opens

With the tunnel active, try the private service from a network where you normally can't reach it. If the service opens and you can use it, the tunnel gives you the access you need. If it doesn't open, ask whoever supplied the file to confirm the service address and whether the profile is meant to route traffic to it.

WireGuard uses the profile's list of allowed Internet Protocol (IP) addresses to decide which destinations to send through the tunnel. Say your profile routes only your workplace's private addresses. Your work portal can open away from the office while ordinary browsing keeps its usual route and your public-facing IP address stays the same. A broader profile can route more destinations, but reaching the portal doesn't show which route your other traffic takes.

Where doxx.net fits. doxx.net runs a private network on its own hardware and IP address space. If you're setting up a separate private network instead of joining the one that issued your WireGuard file, you can download the doxx.net app.

Ask an AI assistant

Share this article

Private Everywhere

Stop giving the internet everything

Keep your browsing, messages, files, and agents private.