This configuration only works if i create a new WAN port with the address I am trying to reach through translation (ex: PLC is on 192.168.1.10, I need to create a WAN port eth0.2, 172.16.1.10).
As i have a pretty extensive network on the 192.168.1.0/24 subnet is there a way to not have to manually create a new WAN interface for each device?
I believe I am missing a route rule somewhere but can’t figure it out.
Just so we could have a better view of the network configuration, could you please send us a drawn topology with the IP addresses (excluding public ones) included?
the direction depends on the devices, PLC would initiate Lan>Wan but engineering PC would initiate Wan>LAN
All configuration are default at the moment except for the iptables -t nat -I PREROUTING -d 172.16.1.0/24 -i eth0.2 -j NETMAP --to 192.168.1.0/24 iptables -t nat -I POSTROUTING -s 192.168.1.0/24 -o eth0.2 -j NETMAP --to 172.16.1.0/24
not sure where the proxy ARP can be enabled on the wan interface
where do you check this?
no additional rules, everything from default configuration
yes I need a full two-way bidirectional 1:1 NAT
Just to make things clear, I am trying to achieve a 1:1 NAT for the all subnet and achieve the same end result as what was described in the post you mentioned.
I also have access to RUTX08 but it does the same behavior.
It just feels I am missing a small config somewhere but can’t put my finger on it.
Thanks for the help
If this setup doesn’t end up working, you may have to edit the firewall traffic rules/zones to allow traffic between certain IP addresses in the network. For testing purposes, you could add a traffic rule that allows all traffic from WAN to LAN, the source IP address being any.
Explanation:
We are tricking our devices to think that the networks they are accessing aren’t overlapping (as yours are in the topology, both being 192.168.1.0/24). Essentially, the left RUTX08 is accessing the 192.168.3.0/24 subnet, whereas the right RUTX08 is accessing the 192.168.4.0/24 subnet.
Finally, we’re adding routes to the RUTX50 so it knows how to access said networks.