OPNsense Forum

English Forums => General Discussion => Topic started by: Gautier on December 09, 2025, 01:09:50 PM

Title: how to connect to two subnet with the same range
Post by: Gautier on December 09, 2025, 01:09:50 PM
Hello,

I really don't have idea how to do but I am sur it's possible.

I have my router on OPNsense connected via wireguard VPN to 2 servers.
both are in the same ip range: 192.168.1.0/24
Today with route and gateway I can access on one subnet without problem.

I would like if I want ping the device 192.168.1.123 on gw1 I use this address 192.168.2.123 and for the same device on gw2 192.168.3.123.
my subnet is 10.3.x.x/24

Any idea?
Title: Re: how to connect to two subnet with the same range
Post by: viragomann on December 09, 2025, 02:58:40 PM
The traffic can be natted (masqeraded) by BINAT rules, but this cannot be done on your site. Nat has to happen on the remote sites.
Title: Re: how to connect to two subnet with the same range
Post by: Gautier on December 09, 2025, 04:55:51 PM
Ok,
He won't be posssible. I will push to change subnet.

Thanks