firewall ignore the rule
I hv iptables 1.2.7 installed on my firewall
The problem is when i try to block traffic from certain address , it just does not work
e.g
iptables -A INPUT -s 10.5.33.22 -j DROP
but when i run iptraf , there are still traffic sent from the source address Any idea why?
Quoted 2 lines
iptables -A INPUT -s 10.5.33.22 -j DROP
Make sure that traffic is not ACCEPTed before.
Quoted 2 lines
but when i run iptraf , there are still traffic sent from the source address Any idea why?
Iptraf bypasses netfilter and so sees _all_ packets.
Jan Engelhardt
Signature · 1 line
| Alphagate Systems, http://alphagate.hopto.org/
Quoted 4 lines · liyas_m m
The problem is when i try to block traffic from certain address , it just does not work
e.g
iptables -A INPUT -s 10.5.33.22 -j DROP
If your work on routed traffic, then you have to put this rule on FORWARD chaine :
iptables -A FORWARD -s 10.5.33.22 -j DROP
Signature · 2 lines
http://sid.rstack.org/ PGP KeyID: 157E98EE FingerPrint: FA62226DA9E72FA8AECAA240008B480E157E98EE
Quoted 2 lines
Quoted 2 lines
Hi! I'm your friendly neighbourhood signature virus. Copy me to your signature file and help me spread!
i have done that and checked with ethereal..still that source address is not blocked. It is still broadcasting ARP packets..a lot.
Quoted 18 lines · Cedric Blancher
Quoted 4 lines · liyas_m m
The problem is when i try to block traffic from certain address , it just does not work
e.g
iptables -A INPUT -s 10.5.33.22 -j DROPIf your work on routed traffic, then you have to put this rule on FORWARD chaine :
iptables -A FORWARD -s 10.5.33.22 -j DROP--
http://sid.rstack.org/
PGP KeyID: 157E98EE FingerPrint: FA62226DA9E72FA8AECAA240008B480E157E98EEQuoted 2 lines
Quoted 2 lines
Hi! I'm your friendly neighbourhood signature virus. Copy me to your signature file and help me spread!
Quoted 2 lines · liyas_m m
i have done that and checked with ethereal..still that source address is not blocked. It is still broadcasting ARP packets..a lot.
iptables/netfilter operates at layer 3. therefore, packets generated or received at layer 2 cannot be blocked with iptables/netfilter. ethereal/iptraf operate at the BPF layer (layer 2), and arp packets are layer 2 as well.
iptables/netfilter is not at fault; you have an invalid testing methodology.
-j
--
"Peter: Brian, there's a message in my Alpha Bits. It says "OOOOOO".
Brian: Peter, those are Cheerios."
--Family Guy
so how do i block that source from transmitting/broadcasting packet?
Quoted 20 lines · Jason Opperisano
Quoted 2 lines · liyas_m m
i have done that and checked with ethereal..still that source address is not blocked. It is still broadcasting ARP packets..a lot.
iptables/netfilter operates at layer 3. therefore, packets generated or received at layer 2 cannot be blocked with iptables/netfilter. ethereal/iptraf operate at the BPF layer (layer 2), and arp packets are layer 2 as well.
iptables/netfilter is not at fault; you have an invalid testing methodology.
-j
--
"Peter: Brian, there's a message in my Alpha Bits. It says "OOOOOO".
Brian: Peter, those are Cheerios."
--Family Guy
Quoted 1 line · liyas_m m
so how do i block that source from transmitting/broadcasting packet?
use something that operates at layer 2. arptables and ebtables come to mind.
-j
--
"Stewie: What the hell is this?
Lois: Stewie that's tuna salad.
Stewie: Really? I could have sworn it was cat food."
--Family Guy
u mean blocking the MAC address also doesnot do any good. hmm i thought iptables is that powerful.
Quoted 15 lines · Jason Opperisano
Quoted 1 line · liyas_m m
so how do i block that source from transmitting/broadcasting packet?
use something that operates at layer 2. arptables and ebtables come to mind.
-j
--
"Stewie: What the hell is this?
Lois: Stewie that's tuna salad.
Stewie: Really? I could have sworn it was cat food."
--Family Guy
Quoted 2 lines · liyas_m m
u mean blocking the MAC address also doesnot do any good. hmm i thought iptables is that powerful.
it is that powerful. you are currently incapable of comprehending its power.
-j
--
"Quagmire: Don't look at me like that. Fat chicks need love too... but
they got to pay."
--Family Guy
Quoted 6 lines · Jason Opperisano
Quoted 2 lines · liyas_m m
u mean blocking the MAC address also doesnot do any good. hmm i thought iptables is that powerful.
it is that powerful. you are currently incapable of comprehending its power.
I like the response. My suggestion would have been to rewrite the tcp/ip stack and block them at layer 1 :-)
-ishwar
Quoted 2 lines · Ishwar Rattan
I like the response. My suggestion would have been to rewrite the tcp/ip stack and block them at layer 1 :-)
layer 1 filtering is simplest of all: unplug the cable.
-j
--
"Peter: Chris, everything I say is a lie. Except that. And that. And
that. And that. And that. And that. And that. And that."
--Family Guy
Quoted 3 lines
u mean blocking the MAC address also doesnot do any good. hmm i thought iptables is that powerful.
There is a reason it's called _IP_tables.
What iptables can do for you is block *IP* packets with certain MAC addresses.
Jan Engelhardt
Signature · 1 line
| Alphagate Systems, http://alphagate.hopto.org/
You might want to look at this project: http://arpstar.sourceforge.net/.
Quoted 24 lines · Ishwar Rattan
Quoted 11 lines · Jason Opperisano
Quoted 4 lines · liyas_m m
u mean blocking the MAC address also doesnot do any good. hmm i thought iptables is that powerful.
it is that powerful. you are currently incapable of comprehending its power.
I like the response. My suggestion would have been to rewrite the tcp/ip stack and block them at layer 1 :-)
-ishwar