Re: block traffic between two subnets

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

 



>Hello,
>      I have two subnets :
>
>eth1 192.168.0.0/24
>eth2 192.168.21.0/24
>
>I would like block all traffic between eth1 and eth2.
>
>How to write a rule ?

iptables -A INPUT -j REJECT -i eth1 -o eth2
iptables -A INPUT -j REJECT -i eth2 -o eth1



Jan Engelhardt                                                               
--                                                                            
| Alphagate Systems, http://alphagate.hopto.org/



[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