I have a linux board with two ethernet interfaces as mentioned below.eth0 connected to another linux machine (ad-hoc)eth0 on board 191.168.1.2 connected to Linux machine 192.168.1.3eth1 on board 10.222.190.25 connected to router 10.222.190.1 I want to enable the ping from linux machine (192.168.1.3) towards router 10.222.190.1. Basically I want the traffic to be passed through the board and then towards router.I believe by setting the correct ipables and NAT rules we should be able to achieve this.Can someone guide me here to achieve it?
How to enable ping between machines connected in two interfaces?
iptables;nat;ethernet