prefixkit Ask an engineerAsk Support RU

Error reference · WireGuard

WireGuard: Packet has unallowed src IP (10.0.0.7) from peer 3 (198.51.100.20:43210)

Packet has unallowed src IP (10.0.0.7) from peer 3 (198.51.100.20:43210)

What it means

A packet came through the tunnel from an address that is not in that peer’s AllowedIPs on this side, so WireGuard dropped it.

Why it happens

  • The client’s tunnel address differs from what the server lists for it (10.0.0.7 vs 10.0.0.2/32).
  • Site-to-site: the remote LAN is not in AllowedIPs of the peer.
  • Two peers share an address.

How to fix it

  1. On the server put exactly the client’s address in [Peer] AllowedIPs (10.0.0.7/32).
  2. For a network behind the peer add that subnet too (AllowedIPs = 10.0.0.7/32, 192.168.50.0/24).
  3. Use the AllowedIPs calculator to build the list.

Useful tools

AllowedIPs calculator · WireGuard config generator

Other WireGuard errors

Idea?