* block traffic between two subnets
@ 2005-07-07 12:04 varun_saa
2005-07-07 12:27 ` Jan Engelhardt
0 siblings, 1 reply; 3+ messages in thread
From: varun_saa @ 2005-07-07 12:04 UTC (permalink / raw)
To: netfilter
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 ?
Thanks
Varun
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: block traffic between two subnets 2005-07-07 12:04 block traffic between two subnets varun_saa @ 2005-07-07 12:27 ` Jan Engelhardt 2005-07-07 12:29 ` Jan Engelhardt 0 siblings, 1 reply; 3+ messages in thread From: Jan Engelhardt @ 2005-07-07 12:27 UTC (permalink / raw) To: varun_saa; +Cc: netfilter >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/ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: block traffic between two subnets 2005-07-07 12:27 ` Jan Engelhardt @ 2005-07-07 12:29 ` Jan Engelhardt 0 siblings, 0 replies; 3+ messages in thread From: Jan Engelhardt @ 2005-07-07 12:29 UTC (permalink / raw) To: varun_saa; +Cc: netfilter >>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 Should have been -A FORWARD ... ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-07-07 12:29 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-07-07 12:04 block traffic between two subnets varun_saa 2005-07-07 12:27 ` Jan Engelhardt 2005-07-07 12:29 ` Jan Engelhardt
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.