CIDR // ALLOWEDIPS

WireGuard IP Calc

Turn a list of addresses into the smallest set of prefixes that covers exactly them, then drop them straight into a peer block.

Paste addresses, subnets, or both — separated by spaces, commas or new lines. Bare addresses are treated as host routes.


    

Use this for the AllowedIPs line of a peer. Fewer prefixes is usually better — a contiguous run of hosts collapses into one entry.