Trouble forwarding traffic from one interface to another.
by cstrutton from LinuxQuestions.org on (#5RDTF)
I have a NanoPi R2S (an ARM SBC running a fork of OpenWrt ver 19.07). It has 2 network ports marked WAN (eth0) and LAN (eth1).
I want to use the unit as a gateway for an industrial PLC. The PLC is on its own network with the PLC address 192.168.1.1.
I have set up the units with Multiple IP Addresses on the WAN interface. 10.4.42.168 and 192.168.42.169
I am using the main (.168) address to talk directly to the unit.
I want to be able to communicate with the PLC using the .169 address. As the type of internal device may vary I am looking to forward all traffic types and on any port. From my research so far, I know I also need to modify the from address in all outgoing packets as well.
Unfortunately, my experience with Linux networking is so limited that I am not even sure what to Google for. Any help would be appreciated.
I want to use the unit as a gateway for an industrial PLC. The PLC is on its own network with the PLC address 192.168.1.1.
I have set up the units with Multiple IP Addresses on the WAN interface. 10.4.42.168 and 192.168.42.169
I am using the main (.168) address to talk directly to the unit.
I want to be able to communicate with the PLC using the .169 address. As the type of internal device may vary I am looking to forward all traffic types and on any port. From my research so far, I know I also need to modify the from address in all outgoing packets as well.
Unfortunately, my experience with Linux networking is so limited that I am not even sure what to Google for. Any help would be appreciated.