unbraid

Guides · Published · Updated on

VPN for one app only on Mac

To use a VPN for one app on Mac, make Direct the default route in unbraid and give that app a VPN route. Apps that follow the default use your normal connection.

You can add more apps to that route, or give them different countries and providers. This guide covers unbraid for Mac. For a phone, see the Android version.

Set it up

  1. Add a connection. During setup, add your provider account or import your own server.
  2. Make Direct the default. In the main window, right-click Direct in the sidebar and choose Make Default.
  3. Check existing assignments. Open All Apps. Click Show My Apps if you haven’t shown the list yet. Set any apps with existing exceptions to Follow Default if you want them on your normal connection. Check Websites too: a website on a VPN route takes that route in every app that isn’t blocked.
  4. Choose a VPN route. Use an existing route, or click the plus beside Routes to add one. Choose its location and confirm the selection. Change Location… changes an existing route’s exit.
  5. Assign your app. In All Apps, use the app’s Route menu to choose the VPN route.
  6. Connect. Click Connect. On first setup, allow unbraid’s network extension in System Settings and approve the VPN configuration when macOS asks.

The VPN route connects once an app is assigned to it, even if that app is idle.

How the other apps behave

Apps that follow the Direct default use your normal connection. Their internet traffic leaves from your own IP address.

Changing the default doesn’t clear other app assignments. An app already assigned to another VPN route stays there until you move it, and an app you put on the route that becomes the default keeps that choice too. New apps follow the default unless you give them a rule.

Exclude one app from the VPN

For the reverse setup, right-click a VPN route in the sidebar and choose Make Default. Unassigned apps now use that VPN.

In All Apps, set the app you want to exclude to Direct. Set other apps to Follow Default if you want them on the default VPN too. Existing exceptions keep their routes.

What counts as the app

unbraid matches connections by the program’s path. Helpers inside an app bundle follow its route.

Connections macOS makes on an app’s behalf count as that app’s when macOS identifies it as the owner. This includes Safari connections through WebKit and background downloads through nsurlsessiond.

If the owning app has quit and its path can’t be found, unbraid can use the helper process’s path instead. A background download may then follow the helper’s route.

One website instead of one app

To send one website through the VPN rather than a whole app, open Websites in the sidebar, click Add Website…, type the address, choose the VPN route and click Add Website. The website takes that route in apps that look names up through macOS, also in apps on Direct; an app on Blocked stays blocked. A browser that uses its own secure DNS (DNS over HTTPS) keeps its own route. The Mac manual covers website rules and their limits.

Add a command-line tool

In All Apps, click Add App… and choose the tool’s executable. Then choose its route in the list.

Give the tool its own rule. Assigning Terminal doesn’t assign the separate programs you run inside it.

For scripts, choose the interpreter that opens the connections. A rule for python3 applies to scripts that run through that executable. Choosing a script such as pip3 doesn’t give it a separate route from its interpreter.

Check it worked

While connected, select the VPN route in the sidebar. unbraid checks its public address through Cloudflare and shows the result. This checks the tunnel, not the chosen app’s assignment.

For a browser, open a page that reports your public IP address in that browser. Compare it with the route’s address. Open the same page in a second browser set to Direct to check your normal connection. Use an IP check site that has no rule in Websites, or both browsers show that rule’s route.

For a command-line tool, make the check with that tool. A browser test only checks the browser’s route. An IP check also doesn’t establish where every DNS lookup went.

DNS and limits

unbraid uses temporary DNS addresses, then looks up the destination through the exit selected for the app’s connection.

With Direct as the default, some other lookups macOS makes for apps can use your network’s DNS. These include lookups other than address records. The DNS filter choices are under Settings, Protection.

  • macOS 26 or later is required. Apple silicon and Intel Macs are supported.
  • IPv6 follows the route or is refused. An exit may not carry IPv6.
  • A failed VPN route doesn’t fall back to Direct while unbraid is connected. Its apps wait for a working route.
  • The kill switch is a separate choice. With Block traffic outside the VPN off, apps that pick Wi-Fi or Ethernet themselves can skip the VPN, and while a VPN reconnects any app may use your normal connection.
  • Home access is separate from the internet exit. Enabled local or Tailscale access can send home traffic outside the app’s VPN route.
  • With Direct as the default and apps on VPN routes, unidentified connections are refused. unbraid refuses internet connections whose program it can’t identify, and internet ping is blocked. Local and home access, when on, have their own rules.

The split tunneling guide explains DNS, home access and the kill switch levels.

Get started

Download unbraid for Mac. The Mac manual covers installation, providers and the rest of the settings.

Bring your own VPN

unbraid is a VPN client with no servers of its own. You sign in with an account you already have, or add your own server. It has built-in support for AirVPN, ExpressVPN, IVPN, Mullvad, NordVPN (affiliate link), Private Internet Access, Proton VPN (Free included), Surfshark (affiliate link) and Windscribe. For CyberGhost, you import config files from your account, with step-by-step help in the app.

We earn a commission if you subscribe through a link marked (affiliate link). It helps keep unbraid free. If you're about to subscribe to a VPN service, thank you for considering doing it through one of them.