From Web Design to ERP — Your IT Partner

Missing /32 in WireGuard AllowedIPs Breaks Routing

Quick takeaway: A WireGuard tunnel can show a perfectly healthy handshake while silently dropping real traffic — because AllowedIPs isn't just a route, it's an access-control filter that runs inside the kernel, before your firewall ever sees the packet. Miss one entry and the drop happens with zero log line. Here's the exact incident, and the checklist we now run on every mesh.

Everything looked fine. The tunnel was up. The handshake was fresh. Ping to the local office network worked perfectly. But the moment a user tried to reach anything on the other two sites — a file server in the cloud hub, a remote-desktop host at the branch office — the connection just hung. No error. No firewall log. No rejected-packet counter. The packet simply vanished.

Need Multi-Site VPN Fixed?

Need help? Connect on WhatsApp 👉 wa.link/uw9n3f

Or ask on website chat for freelancer support.

This is the story of tracking down a WireGuard bug that doesn't show up in any firewall rule, because it isn't a firewall problem at all — it's baked into how WireGuard decides whether to route a packet in the first place.

The Setup

Three sites, one hub-and-spoke WireGuard mesh, all MikroTik RouterOS:

Site A — HQ office

172.20.10.0/24

wg-hub: 10.90.0.2

Site B — cloud hub

172.20.60.0/24

wg-mesh: 10.90.0.1

Site C — branch VPS

172.20.70.0/24

wg-hub: 10.90.0.6

Site B is the hub. Site A and Site C are spokes that only talk to Site B directly — cross-site traffic (A → C) is relayed through B. On top of the three site tunnels, Site B's hub interface also has a handful of road-warrior peers — individual phones and laptops that connect directly into the mesh from wherever they are.

Four road-warrior peers existed on the hub:

Peer nameTunnel IPStatus

spare-phone10.90.0.20/32provisioned, never used

daily-driver10.90.0.21/32the one actually in daily use

backup-laptop10.90.0.22/32provisioned, not currently used

tablet10.90.0.23/32provisioned, not currently used

The user reported: connected fine, could reach Site A's local network, could not reach anything on Site B or Site C.

First, Rule Out the Obvious

Firewall rules on Site A: broad accept for anything in/out of the WireGuard interface. Fine.

Routing table on Site A: static routes to Site B's and Site C's subnets, both active, both pointing at the WireGuard interface. Fine.

Firewall rules on Site B (the hub): broad accept for traffic in/out of both the office-facing and branch-facing WireGuard interfaces, before a final drop-all. Fine.

Every rule that should be involved in forwarding this traffic was already permissive. And yet the packets never arrived.

The Actual Cause: AllowedIPs Is Not Just a Route, It's a Filter

WireGuard's allowed-address field (called AllowedIPs in the standard wg config format) does two jobs simultaneously, and it's easy to only think about one of them:

Outbound routing — which peer to encrypt a packet for, based on the packet's destination.

Inbound authorization — whether to accept a decrypted packet at all, based on the packet's source. This check happens inside the WireGuard kernel module itself, before the packet ever reaches the firewall.

Job #2 is the one that gets forgotten. On Site B's hub, the peer entry representing "everything behind Site A" looked like this:

/interface wireguard peers print detail where name="Site-A"

;;; Site A (HQ)

interface=wg-mesh name="Site-A"

public-key="EXAMPLE+SiteAPublicKeyAAAABBBBCCCCDDDDEEEE="

allowed-address=10.90.0.2/32,172.20.10.0/24,172.20.11.0/24,10.90.0.20/32

Notice 10.90.0.20/32 at the end — that's spare-phone, the peer that was never actually used. daily-driver (10.90.0.21/32), the peer that was actually connected and generating traffic, is nowhere in that list.

When daily-driver's traffic (source 10.90.0.21) arrived at the hub destined for Site C's LAN, WireGuard checked: is 10.90.0.21 an address I'm willing to accept as originating from this peer's side of the tunnel? The answer was no — the address simply wasn't in the list — so the packet was dropped silently at the WireGuard layer. It never reached the firewall, never got logged, never triggered any counter. From the user's perspective it just looked like the far end wasn't answering.

Traffic to the local site kept working because that resolution happens entirely within the tunnel the client is directly connected to — no second hop, no second AllowedIPs check.

Want the full mechanics of why AllowedIPs behaves this way — and how it differs from how IPsec splits routing and access control into two separate systems? Read the companion deep-dive: WireGuard AllowedIPs Explained.

The Fix

Add the missing address (and, while in there, the other provisioned-but-idle peer IPs, so the same bug doesn't resurface the next time one of them is used):

/interface wireguard peers set [find name="Site-A"] \

allowed-address=10.90.0.2/32,172.20.10.0/24,172.20.11.0/24,10.90.0.20/32,10.90.0.21/32,10.90.0.22/32,10.90.0.23/32

Verify:

/interface wireguard peers print detail where name="Site-A"

And confirm with a real TCP test from the far-end LAN — don't rely on ping alone, since ICMP handling and TCP forwarding can differ:

# from a host on Site C's own LAN

timeout 5 bash -c '</dev/tcp/172.20.70.30/3389' && echo OPEN || echo CLOSED

Traffic started flowing immediately — no reboot, no interface reset. WireGuard peer config changes apply live.

Why This Bug Is Easy to Miss

No firewall log entry. The drop happens before the firewall filter chain runs at all.

No error on the client. The client's own tunnel still shows a healthy, recent handshake — the handshake doesn't validate destination reachability, only that the two ends hold matching keys.

Partial connectivity looks like partial success. Because local traffic worked, the instinct is to suspect the remote site's firewall, not the hub's peer definition — which sends the investigation in exactly the wrong direction.

It only bites new devices. The bug sits dormant for months if nobody adds a new client peer. The first time it surfaces is the first time someone provisions device #2 and forgets to update the hub's record of what that spoke is allowed to originate.

Checklist: Auditing Your Own Mesh for This

# On the hub, for every spoke peer:

/interface wireguard peers print detail

# For each spoke's allowed-address list, confirm it includes:

# - the spoke's own LAN subnet(s)

# - the tunnel IP of EVERY client device that connects through that spoke

# (not just the first one you ever configured)

If a spoke relays road-warrior clients of its own, the hub's entry for that spoke needs every one of those client tunnel IPs listed too — not just the spoke's site subnet.

Why doesn't the firewall log this drop?

Because the AllowedIPs check happens inside WireGuard's own kernel module, at the point of decryption — before the packet is handed to the normal Linux/RouterOS packet-filtering path. Your firewall never sees a packet that was never accepted by WireGuard in the first place, so there's nothing for it to log.

Does this affect wg-quick / non-MikroTik WireGuard too?

Yes — AllowedIPs is core WireGuard protocol behavior, not a MikroTik-specific feature. The same silent-drop mechanic applies identically on Linux wg-quick, mobile WireGuard apps, and any other implementation. Only the configuration syntax differs.

How do I tell this apart from a routing problem?

Check the peer's traffic counters. No tx spike at all on a connection attempt means the client-side AllowedIPs never routed the packet into the tunnel. A tx spike with no reply usually means it was dropped further downstream — the AllowedIPs mismatch described here, standard routing, or a firewall rule.

Running a multi-site MikroTik mesh?

This is exactly the kind of quiet, no-log failure that costs hours if you don't already know where to look. If your mesh is showing partial connectivity that doesn't match up with your firewall rules, we can audit the peer configuration directly.

Book a free 30-min consult →

All IPs, keys, and identifiers in this post are documentation examples (RFC 1918 / RFC 5737 style) and do not correspond to any real deployment. Tested on MikroTik RouterOS 7.22.2 (stable).