I have a machine C with two NICs, namely
eth1, with CentOS 4.9 installed on it. Also I have a machine A connecting to C through
eth0 and a machine B connecting to C through
eth1. Now I want machine A to be in a subnet (e.g. 192.168.3.0/24) and machine B to be in another subnet (e.g. 192.168.4.0/24) and they could communicate with each other.
eth0 eth1 Machine A <---------> Machine C <---------> Machine B ...3.0/24 ...4.0/24
According to the answer of my previous question about this problem, I configured my eth0 and eth1:
DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.3.1 NETMASK=255.255.255.0 ONBOOT=yes TYPE=Ethernet
DEVICE=eth1 BOOTPROTO=static IPADDR=192.168.4.1 NETMASK=255.255.255.0 ONBOOT=yes TYPE=Ethernet
And configure Machine A (Windows XP) with 192.168.3.10, 192.168.3.1(gw), and Machine B (windows 7) with 192.168.4.10, 192.168.4.1(gw). I have enabled ip forwarding on machine C. Now, I haven't added any routes or iptables rules. I could ping 192.168.3.10 from machine B, but not vice vesa. Am i missing some routing rules? If yes, how to add these rules?
Any suggestions or tutorials or howtos will be appreciated.