No, this is what appears in Current Endpoint Address and has no relation to allowed-address. allowed-address only cares about the addresses inside the tunnel, not the address of the wrapper UDP packets that transport the WG data. That your clients use cellular networks only causes the source/destination of those UDP packets to change. Inside the tunnel the peers should have fixed addresses. and the packets inside the tunnel have addresses not related to the cellular address.
What allowed-address controls:
-
When the remote peer (for example your mobile phone) establishes the WG connection (with handshake) and start sending packets inside the tunnel to the other side that is the router, the source address of those packets inside the tunnel will be checked against the list of
allowed-addressassociated with that remote peer. If there is no match (including subnet check when you use shorter prefix lengths like/0or/24,/64, etc....) the packet (that arrives inside the tunnel) are dropped. -
When a packet needs to be sent or forwarded (for example from a LAN device) by the router, and the best route (from
/ip routeor/ipv6 route) for the destination of the packets dictate that the WireGuard interface is to be used as the gateway, the packet to be sent will be handled by the WireGuard interface. WG will look at the list of peers belonging to that WireGuard interface and check theallowed-addressfield of those peers, the first peer with the best matchingallowed-addresswill be chosen, and the packet will be sent through the tunnel established with that remote peer.
That why there was plenty of threads in the past, were people were unable to have more than one remote WG peers working at the same time. They might create 2 peers associated with the same interface, then give one allowed-address=10.12.34.56/24 and the other allowed-address=10.12.34.67/24 and then wonder why communication with 10.12.34.56 doesn't work at all. Because both 10.12.34.56/24 and 10.12.34.67/24 have the same result as 10.12.34.0/24 when matching with 10.12.34.56, it happened that the peer with allowed-address=10.12.34.67/24 is picked to receive the packet, instead of the one with allowed-address=10.12.34.56/24. But back then if you edit and save the allowed-address=10.12.34.56/24 it will raise in the lookup order and might be picked again. So you have people saying a peer only works if they disabled and re-enabled it. But stops working when they edit other peers.
To prevent that, recent RouterOS version introduced the error and warning messages:
-
If two or more peers have one (or more) exact same subnet in
allowed-address, such as the situation above when one hasallowed-address=10.12.34.56/24and oneallowed-address=10.12.34.67/24, which are bothallowed-address=10.12.34.0/24, that's an error and you won't be able to save the change, (you see the error message if the peers were already created previously in older versions). Same when both haveallowed-address=10.12.34.56/32for example. -
If the subnet are not the same but overlap, for example one has
10.12.34.56/32and one has10.12.34.0/24, or one has0.0.0.0/0, they overlap, but will not produce an error. The range with the shorter prefix (/24or/0in the example does contain (which also overlaps) the address with the/32. But it still work because the routing inside WG does honor the priority set by the prefix length. The longer prefix (more precise) will be chosen first if they match.So with 3 peers, one with
allowed-address=10.12.34.56/32, one withallowed-address=10.12.34.0/24, and one withallowed-address=0.0.0.0/0attached to the same WG interface, a packets destined for10.12.34.56will reliably use the 1st peer as destination. And a packet with destination10.12.35.67will use the peer withallowed-address=10.12.34.0/24. One with destination8.8.8.8will use the0.0.0.0/0peer.So there is no ambiguity, it works that's why you can still save the change and the message is only a warning not a true error message. It's still a warning because normally you probably wanted two
/32peers instead of two overlapping/32and/24peers.
But if put allowed-address=0.0.0.0/0 on every peer of the same WG interface then of course it's a big fat error situation.
Normally you only use allowed-address=0.0.0.0/0 (and / or ::/0 for IPv6) for at most one peer per interface, and that's most of the time for the case when you have to route internet traffic through the tunnel (browse Internet via remote WG VPN), in those case the packets to be sent / received have all possible IP addresses and can only be filtered by 0.0.0.0/0 or ::/0.