prefixkit Ask an engineerAsk Support RU

IP & network

WireGuard AllowedIPs calculator

Work out WireGuard AllowedIPs: all traffic through the tunnel except the LAN, the VPN server address and your own ranges. Or the opposite: only Telegram, YouTube and other services. A ready line for the config and for MikroTik.

Keep out of the tunnel

Why AllowedIPs needs calculating

In WireGuard, AllowedIPs decides which traffic goes into the tunnel. 0.0.0.0/0 sends everything, and you lose your printer, NAS and router on the LAN. WireGuard has no “except”, so “everything but 192.168.0.0/16” must be written as the set of subnets covering the rest. The calculator does that and keeps the list as short as possible.

Common mistakes

A complete server and client config: WireGuard config generator. Service lists in other formats: service IP ranges. Tunnel MTU: MTU calculator.

Idea?