Sorry - typo I put the -b in twice on each line.
Victor McAllister wrote:
> 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.
_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-user