OPNsense Forum

English Forums => Virtual private networks => Topic started by: kysave on August 21, 2022, 12:01:31 PM

Title: Wireguard multiple endpoints - adjacent IP addresses
Post by: kysave on August 21, 2022, 12:01:31 PM
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!
Title: Re: Wireguard multiple endpoints - adjacent IP addresses
Post by: Greelan on August 21, 2022, 01:34:50 PM
Yes - see the note in that section of the how-to
Title: Re: Wireguard multiple endpoints - adjacent IP addresses
Post by: kysave on August 21, 2022, 05:28:10 PM
Indeed, thank you! I don't know how I managed to miss it.