Ahmad, you have posted this problem repeatedly and got a
number of answers.
To get two internal networks to talk to each other you need
to add a command something like this for each network to
every network it will communicate with.  You will you have
to have several rules to make all four of you networks
communicate between themselves.

ipchains -I forward -j ACCEPT -b -s 192.168.1.0/24 -d
192.168.2.0/24 -b
ipchains -I forward -j ACCEPT -b -s 192.168.1.0/24 -d
192.168.3.0/24 -b
ipchains -I forward -j ACCEPT -b -s 192.168.1.0/24 -d
192.168.4.0/24 -b
ipchains -I forward -j ACCEPT -b -s 192.168.2.0/24 -d
192.168.3.0/24 -b
ipchains -I forward -j ACCEPT -b -s 192.168.2.0/24 -d
192.168.4.0/24 -b
ipchains -I forward -j ACCEPT -b -s 192.168.3.0/24 -d
192.168.4.0/24 -b
type in the first line <ENTER>
then hit the up arrow and edit the line repeatedly for the
other lines.
Test to see that it works with your pings.
If it works like you want - figure out where to put them in
one of the scripts.

The -I inserts the rule at the top of the forward chain
-b makes the rule bidirectional so it works in the reverse
direction.  This reduces considerably the number of rules
needed.


ahmad wrote:

> My aim is to make a four ethernet port router.For the
> testing purposes i have attached four rtl8139 ethernet
> cards with my LRP machine .They all are configured .Each
> ethernet card is attached to a single computer which will
> be soon shifted to a network of computers through a
> hub/switch.the details of my network is as follows.eth 0 =
> 192.168.1.2      is attached to       computer A =
> 192.168.1.10eth 1 = 192.169.2.2.     is attached to
> computer B   = 192.168.2.10eth2 = 192.168.3.2       is
> attached  to       computer C = 192.168.3.10eth3    =
> 192.168.4.2    is attached  to   computer D   =
> 192.168.4.10 I am using LRP 2.9.8.The problem i am facing
> is that all of the four computers i.e A,B,C,D are pinging
> to LRP and LRP is also pinging to themI can c the entries
> of the four networks is the routing table of LRP using ip
> route  commandbut the problem is that the computer A is
> not pinging to computer B.i need this to happen and then
> my real works start.Why they are not pinging?


_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to