Closed luweijun1992 closed 3 months ago
The route 0.0.0.0/0 already includes all IPv4 addresses, so adding 172.31.255.0/24 to AllowedIPs is redundant. To achieve your desired configuration, remove 172.31.255.0/24 from AllowedIPs and use DisallowedIPs to exclude local networks. This approach will ensure your routing rules are applied correctly without unnecessary overlaps.
I hope to use wg for Internet access and a single /24 network segment, and the rest is local (i.e. private network segment) AllowedIPs = 0.0.0.0/0, 172.31.255.0/24
Otherwise, DisallowedIPs needs to be written separately.