I have three devices, one is a master which will talk with the slave and Device3 but it is only physically connected to the Device3. The slave will speak only with the master(also through the Device3). The third device is meant to be a gateway between master and slave, but also receive commands from the master.
They are all on the same network. Lets suppose:
Master - 192.168.0.1(eth0)
Slave - 192.168.0.2(eth0)
Device3 - 192.168.0.3(eth0) and 192.168.0.4(eth1)
How can I make this work? Device3's OS is Linux. I suppose I will have to set ARP filter and routes to both eth0 and eth1, right?