I have a machine that has 3 NICs serving as a GW (eth0 192.168.1.0/24, eth1 10.0.1.0/24, and eth2 10.0.2.0/24) I have one machine in each of 10.0.1.0 and 10.0.2.0 that I need to be able to access from the 192.168.1.0 network. So my idea is to set up port forwarding so that all traffic sent to that port gets forwarded to the corresponding machine. For example if my GW is 192.168.1.1 and I point a browser to 192.168.1.1:10013 it get forwarded to 10.0.1.3:80.
How would I write the rule(s) to get this working. TIA.