Sorry, I am not sure that if I understood everything. Though, it seems like you want to interconnect 2 sites (systems) with same IP networks.
If so, the RUT router should be in between networks to route traffic and the other side should be connected to the WAN port.
If you're looking for 1-to-1 NAT between 192.168.100.x and 172.24.xxx.xxx , you can find a configuration example on our wiki page here.
In case you are looking to interconnect same networks (you mention that both systems have same IP), then you can also use NETMAP. Here's an example of NETMAP rules (change the IP addresses as you need):
- iptables -t nat -I POSTROUTING -s 192.168.100.0/24 -d 192.168.20.0/24 -j NETMAP --to 192.168.30.0/24
- iptables -t nat -I PREROUTING -s 192.168.20.0/24 -j NETMAP --to 192.168.100.0/24
- iptables -t nat -I POSTROUTING -s 192.168.100.0/24 -d 192.168.30.0/24 -j NETMAP --to 192.168.20.0/24
- iptables -t nat -I PREROUTING -s 192.168.30.0/24 -j NETMAP --to 192.168.100.0/24
These rules assume that the LAN networks are 192.168.100.x on both sites. For these devices in the LAN network to reach the other 192.168.100.x network, they will need to use 192.168.20.x destination addresses and the source IP will be mapped to192.168.100.x.
For example, if the devices will try to send a packet to 192.168.20.10, the IP address will be changed to 192.168.30.10 when leaving router 1, and then when router 2 will receive the packet, it will change 192.168.30.10 to 192.168.100.10 and pass it to it LAN. Hence, rules are needed on both routers.