Wireguard multiple endpoints - adjacent IP addresses

Started by kysave, August 21, 2022, 12:01:31 PM

Previous topic - Next topic
Hello all!

I'm configuring Wireguard using the following How-To and everything works just fine so far.
https://docs.opnsense.org/manual/how-tos/wireguard-selective-routing.html

There is only one thing I'm not sure about when configuring multiple endpoints which have adjacent IP addresses, e.g.

10.0.0.20/32 (so I'd have to choose 10.0.0.19 as the associated gateway in advanced mode)
10.0.0.21/32
10.0.0.22/32 etc.

Am I correct in assuming that choosing 10.0.0.20 as the gateway IP address for the second endpoint would lead to conflicts? Is it then ok to take e.g. 10.0.0.17, ...18 IP's?

Thanks!


Indeed, thank you! I don't know how I managed to miss it.