Home / VPN guides / WireGuard AllowedIPs: Full vs Split Tunnel and DNS
WireGuard AllowedIPs: Full vs Split Tunnel and DNS
Quick answer: In WireGuard, AllowedIPs tells a peer which IP addresses belong to a tunnel peer. It has two roles: selecting a peer for outgoing tunnel packets and checking the permitted source IPs of decrypted incoming packets. In common Linux wg-quick setups, the entries also guide which routes the helper installs. 0.0.0.0/0 covers every IPv4 destination; ::/0 covers every IPv6 destination. A list such as 192.168.50.0/24 covers only that subnet. These choices affect routing, not whether a VPN app is trustworthy or whether DNS and local applications are protected.
Reviewed 2 November 2026. This independent technical explanation uses the WireGuard project’s cryptokey-routing documentation and the wg-quick manual. The address ranges are illustrative; SealedVPN has not deployed or benchmarked these configurations. If your employer or VPN provider manages the tunnel, follow their instructions rather than editing a live work profile.
What does AllowedIPs do inside WireGuard?
WireGuard associates each peer’s public key with a set of permitted tunnel addresses. For outgoing packets already routed to the WireGuard interface, those addresses select the peer that should receive the encrypted packet. For incoming packets, the allowed list also checks the IP source address inside the authenticated packet. WireGuard calls this cryptokey routing.
This is easily confused with three separate controls: the operating system’s route table (which selects an interface), a firewall (which can restrict other traffic), and a consumer VPN app’s app-based split-tunneling switch. AllowedIPs is not a general-purpose firewall, a no-logs policy or a substitute for a kill switch.
Decision table: which AllowedIPs entry fits the purpose?
| Intent | Illustrative client peer entry | Important caveat |
|---|---|---|
| Send all IPv4 and IPv6 destinations through one peer | AllowedIPs = 0.0.0.0/0, ::/0 | The server must be configured to forward the relevant traffic; routing and DNS behavior also depend on the OS/client. |
| Reach only a remote office/home subnet | AllowedIPs = 192.168.50.0/24 | Other destinations can use the ordinary network path; DNS for internal hostnames needs separate consideration. |
| Reach one remote machine only | AllowedIPs = 192.168.50.25/32 | A /32 is one IPv4 address, not an entire private network. |
| Server permits one client tunnel address | AllowedIPs = 10.88.0.2/32 (on server’s peer entry) | This controls peer address association; it does not automatically authorize access to every server-side resource. |
These sample addresses are documentation examples, not your provider’s verified network ranges. Do not paste them unchanged into a real connection.
Scenario A: full-tunnel internet access
Suppose a trusted server is intended to carry your regular internet connections. A client configuration might contain:
[Peer] # Other settings provided by the administrator are omitted. AllowedIPs = 0.0.0.0/0, ::/0
The IPv4 and IPv6 default prefixes tell WireGuard that this peer is eligible for those destinations. On a Linux system using wg-quick with its default routing behavior, the helper derives routes from these prefixes, with special handling for default routes. Other platforms and commercial VPN apps can add their own routing policy. A tunnel that shows a recent handshake but cannot load websites may still have a missing server-side forward/NAT rule, DNS issue, restricted provider plan or blocked destination.
Check both address families. A configuration containing only 0.0.0.0/0 does not itself specify a route for IPv6. That does not prove an IPv6 leak in every setup, but it is a reason to review IPv6 routing and leak checks against the network and VPN client’s actual behavior.
Scenario B: split tunnel to a remote LAN
Suppose your home lab uses 192.168.50.0/24. While travelling, you want to reach that subnet but use ordinary internet access for unrelated sites. The client’s WireGuard peer might contain:
[Peer] # Illustrative remote-LAN routing only. AllowedIPs = 192.168.50.0/24
That prefix selects the peer for destinations in the remote LAN. It does not force arbitrary public websites through the tunnel. If the remote network uses the same subnet as the hotel or office Wi-Fi you are currently on, routing can be ambiguous; review the exact addresses and routes rather than changing random settings. For the distinction between per-application split tunneling and destination-subnet split routing, read our VPN split-tunneling explanation.
Why can the tunnel work while DNS fails?
DNS servers and website destination addresses are two separate things. A split tunnel that carries only a remote subnet may still configure a DNS resolver elsewhere. If the chosen DNS server is reachable only over the VPN but its address is not routed into the tunnel, names might fail even while direct connections to known IP addresses work. Conversely, a DNS resolver may resolve private hostnames but not provide the internet access expected by the user.
First identify the DNS server configured by the app or operating system, then determine whether that server’s address is reachable through the intended route. The DNS option in wg-quick is handled by a resolver utility, whereas the route installation is driven by allowed IP prefixes; they are related but separate mechanisms. Avoid entering a public resolver just to make an internal-domain problem disappear without understanding the privacy and name-resolution trade-offs. See also our DNS routing and leak-test guide.
A safe diagnostic sequence
- Record the intent first. Do you need every internet destination through the VPN, or only a particular subnet? Write down the exact subnet supplied by your administrator.
- Confirm the connection state. Check the WireGuard app’s handshake and transfer counters. A recent handshake shows a peer exchange, not proof that every destination is reachable. Our WireGuard handshake guide covers failures at this stage.
- Check the operating-system route. On Linux, ip route get 192.168.50.25 can show the selected IPv4 route for an example destination; ip -6 route shows IPv6 routing. Observe before making changes.
- Compare IP connectivity and hostname resolution. If IP connectivity works but hostnames do not, focus on DNS rather than repeatedly changing peer keys or protocol choices.
- Protect managed devices. Never disable a corporate firewall, kill switch or enforced VPN policy to force a test; contact the administrator with the symptoms and timestamps.
What does Table = off change?
The Linux wg-quick helper supports Table = off, which stops it from creating automatic routes. It does not remove WireGuard’s peer address checks. An administrator can then manage routes and policy rules separately, but that is an advanced setup and can interrupt connectivity. The officially maintained wg-quick manual documents this distinction and the default-route behavior.
Does AllowedIPs stop traffic if a VPN disconnects?
Not automatically. Whether connections outside the tunnel are blocked after interruption depends on operating-system routing, firewall rules and any separately implemented kill-switch behavior. A list of allowed subnets inside a tunnel configuration should not be sold as a guarantee that all application traffic remains protected. For context, see what a VPN kill switch does.
When should a consumer choose a different approach?
If you need a straightforward VPN for a phone, a provider’s supported app may handle routing, reconnection and DNS more safely than manually copying a desktop configuration. If you need only access to a small home or business network, a destination-based configuration may be appropriate if you control both peers and understand the route and authorization policy. Do not choose based solely on claims that one configuration is faster or more secure; these examples are not performance tests. The broader WireGuard vs OpenVPN guide explains protocol trade-offs.
Sources and editorial method
Primary references: WireGuard project: cryptokey routing; WireGuard Quick Start; wg-quick manual. This article was researched and drafted with AI assistance, checked against these primary references and the existing SealedVPN library, and editorially reviewed for factual limits on 2 November 2026. SealedVPN is an independent educational publication, not a VPN operator. We have not tested these example networks or received payment to recommend a provider.
General information based on the sources linked above. Settings, prices and terms change, so confirm them with your provider or device maker. Found an error? Tell us.