Import a .conf file, or build a WireGuard tunnel from scratch
Most tunnels start as a file somebody sent you: a .conf exported from a server panel, a QR code. WireTunnels reads it line by line and shows you what it would do before it touches the system.

What is inside a configuration file
A WireGuard file has two sections. [Interface] holds your private key, the address you get inside the tunnel and, if needed, DNS. [Peer] holds the server's public key, the Endpoint and the AllowedIPs, the address ranges that should go through the tunnel. If AllowedIPs contains 0.0.0.0/0, all IPv4 traffic enters the tunnel; if it only has 10.8.0.0/24, just that network does. It is the one line that really changes behavior, and it is the difference between the Full Tunnel and Split Tunnel templates.
WireTunnels currently handles configurations with a single [Peer] per file. That is deliberate rather than an oversight: the app's parser and the privileged helper's check both accept exactly one peer, and the files that circulate between providers and admins are almost always shaped that way.
What gets checked before anything is saved
Import is a short sequence: source, validation, review, import. Nothing is added or connected until you press Import. The review flags syntax errors, safety problems, missing fields and bad formats, each with a hint and a line number. Valid syntax is not a working tunnel, though; only a real connection tells you that. Private and preshared keys never show up in previews or logs.
The same screen lets you pick where the tunnel lives: My Tunnels, private to your account, or Visible to All Users, which needs an administrator and is covered in the shared tunnels guide.
Importing a file, step by step
- 1
Open the dashboard from the menu bar and click Import Config, the down-arrow icon in the top right. The one next to it, with the plus, is New Tunnel.
- 2
Drop the
.conffile on the area shown, or click it to pick a file. For a QR code you can open the image or use Paste QR Code from Clipboard. - 3
Read the review: the checklist, the routes and DNS servers it would set up, and any Configuration warnings. If something is wrong, Fix in the Advanced Editor opens the text so you can correct it.
- 4
Pick a name (up to 50 characters) and the destination, then press Import. From the result you can open the tunnel right away with Open tunnel.
Creating from scratch: basic editor, advanced editor, templates
New Tunnel gives you two ways to work. The Basic Form is a form with the configuration fields: Generate creates the key pair (the private key stays on the Mac, masked), and one button sets AllowedIPs to all traffic, 0.0.0.0/0, ::/0, with a reminder that you can list just the networks you want to reach instead. The Advanced Editor is the raw text with the same line-by-line checks. You can move between them, but the app refuses to go back to the form if the editor holds something the form would lose, and leaves your text as it is.
In the advanced editor, the Template button inserts one of three starting points: Empty, with every required section and blank fields; Split Tunnel, which routes only certain subnets (10.8.0.0/24 and 192.168.0.0/24 in the example); Full Tunnel, which routes everything through 0.0.0.0/0. Values such as <PRIVATE_KEY> and vpn.example.com:51820 are placeholders to replace, and if the editor already has text the app asks before replacing it.
Before you trust a file that came from outside
A detail with consequences: wg-quick runs PostUp and PreDown lines as root. WireTunnels' helper filters those constructs, and in 1.0.7 we closed several ways around the filter, but the rule is the one in the README: read a file before you import it, especially one you did not write.
One thing about the Full Tunnel template: it has ::/0 in AllowedIPs but only an IPv4 address. If your server does not give you an IPv6 address, import flags it as a possible IPv6 leak. Add the IPv6 address or drop ::/0.






















