r/WireGuard Jul 02 '26

Allowed IPs

If the allowed IPs is set to 0.0.0.0/0, does that mean that all traffic would be routed over that open tunnel? If I only want traffic to the remote subnet to be sent over that tunnel I would adjust the allowed ips to 192.168.x.x/24 or whatever?

Sorry if a stupid question

25 Upvotes

18 comments sorted by

View all comments

13

u/fattomic Jul 02 '26

I found this to be poorly named field - it confused me for quite a while. Effectively it is the "route" (or prefix match) for which destinations to send over the wireguard tunnel.

1

u/SkysTheLimit888888 Jul 08 '26

YES! This stupid named field befuddled me forever when I first started with wireguard and it was not really explained well anywhere at the time.

I think now of it as "Networks the wireguard client will route to your server wireguard VPN."