I have a router with two bridge… LAN and WAN
LAN → 10.20.10.0/24
WAN → 10.20.200.0/24
I need to connect to old devices that still have ip address 192.168.1.0/24
these devices are in both LAN and WAN bridges
actually I create a masquerade src-nat with source address 10.20.10.0/24 and destination address 192.168.1.0/24
and I add 192.168.1.254 IP address either to LAN bridge and WAN bridge…
I left an IP address enabled and the other disabled… I manually change enabled/disabled flag according to whether the device with which I have to connect is in lan or in wan
is there any way to avoid to manually enable or disable the IP address every time?
With devices in the same subnet being on both sides of the router, I dont think ARP Proxy is going to help you here.
Off the bat, the only other way I think this will work is, but sounds more of a mission than you already do:
Assuming you are on the LAN side, add 192.168.1.254 on WAN side interface, add NAT rule accordingly, remove default gateway on your device/laptop and add static routes for the host IPs (/32) on the WAN side pointing to gateway of the LAN subnet.
That way, anything in the 192.168.x.x range not specified in the the static routes will do ARP requests and get responds back from devices in LAN, and the ones on WAN side will be directed to the gateway