disallow access from two internal networks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

I've a linux router that's sharing an internet connection with four internal
networks:

192.168.1.0/24
192.168.2.0/24
192.168.3.0/24
192.168.4.0/24

I'd like to disallow each internal network to access the others.

I've this devices on the router:

ppp0 (external connection)
eth0 (network 1)
eth1 (network 2)
eth2 (network 3)
eth3 (network 4)

I thought that with this:

$IPT -A OUTPUT -o eth0 -s 192.168.2.0/24 -j DROP

I could drop any connection comming from the eth0 device (network 1) to the
network 192.168.2.0/24 (network 2).

I've tryed it but it don't DROP the connection.

What am I missing?

Thanks.



=====
Miguel Manso
mmanso@xxxxxxxxx

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux