unbraid

Guides · Published · Updated on

WireGuard split tunneling on Android

The official WireGuard app for Android can split tunnel per app: in a tunnel’s settings you choose apps to exclude, or the only apps to include. A tunnel’s app settings apply to the whole tunnel, though, so you can’t pick a different server for each app. Without root, the app runs one tunnel at a time, and Android runs one VPN app at a time. With two configs, say a VPS in Germany and your router at home, you can’t send one app through each.

unbraid imports WireGuard configs and keeps several of them connected at once. Each app goes through the config you choose, through a provider’s server, or uses your normal connection.

Split tunneling in the WireGuard app

Open a tunnel, tap edit, and use the applications setting. You pick apps to leave out of the tunnel, or a list of the only apps that use it. The setting applies to the whole tunnel. To change server, you switch tunnels, and every app moves with it.

Several WireGuard configs at once

  1. Import a config. In unbraid, go to Settings, Providers & servers, Add connection, WireGuard or OpenVPN file, and pick the .conf file. Give it a name under Name this server and tap Import. On a fresh install, the first run offers Import a config file.
  2. Import the others the same way. They appear under Own servers in the location picker.
  3. Make routes. In Routes, tap +, then Route, open Own servers and pick a config. Do this for each config. Set the one most apps should use as the default route.
  4. Assign apps. Open Apps, tap an app and choose its route, or Direct.
  5. Connect from Routes.

Configs can run next to exits from providers like NordVPN or Mullvad, and next to Tailscale.

What configs work

An imported WireGuard config is an internet exit, so its AllowedIPs must cover all IPv4 addresses: 0.0.0.0/0, or ranges that add up to it, such as 0.0.0.0/1 and 128.0.0.0/1. unbraid supports configs with one peer and IPv4. It doesn’t import AmneziaWG configs, and has no QR or link import. A config can be at most 16,384 characters long.

Lookups on a WireGuard exit use the DNS server in the config, with Quad9 as a fallback. To replace it, choose a filter or Own DNS server under Settings, Protection, and turn on VPN routes. unbraid keeps the config’s PersistentKeepalive value. 0 or off turns it off, and if the line is missing unbraid uses 25 seconds. Local names use your network’s DNS while Local network bypasses the VPN is on, and Android’s Private DNS can override unbraid’s DNS.

A tunnel to your home network

A config that reaches only your home addresses, such as 192.168.1.0/24 from your router, isn’t an internet exit. Import it under Settings, Local & home access, Home WireGuard tunnel. Routed apps then reach your home devices and keep their own exit for the internet. Connections have to start on the phone: unbraid refuses new connections from home toward the phone through the tunnel. Tailscale, built in, is the other way home: see the Tailscale guide.

Limits

  • IPv4 only. Apps that go through unbraid can’t use IPv6.
  • Imported configs stay where they are. unbraid doesn’t move them to another server when they fail. While unbraid is connected, apps on a failed exit don’t switch to your normal connection; their connections fail until the exit works again.
  • Android 13 or newer, on a 64-bit ARM phone.

To test several imported routes together, open Stats, Routes, Speed test and choose ALL. Routes without assigned apps connect briefly for the run.

The split tunneling guide covers routes, DNS and failures in more detail.

Questions

Can I keep the WireGuard app installed? Yes, but it can’t be connected while unbraid is on. Android runs one VPN app.

Do my configs leave the phone? No. unbraid stores them encrypted on the phone and has no servers of its own.

Can I use a provider’s WireGuard config? Yes, if it has one peer and its AllowedIPs cover all IPv4 addresses. For providers built into unbraid, you can also sign in, which gives you their server list and the location picker.

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.