Linux Netfilter discussions
 help / color / mirror / Atom feed
* ICMP floods
@ 2003-10-15  3:54 Edmund Turner
  2003-10-15  7:06 ` Alistair Tonner
  2003-10-15 16:36 ` Jim Carter
  0 siblings, 2 replies; 7+ messages in thread
From: Edmund Turner @ 2003-10-15  3:54 UTC (permalink / raw)
  To: netfilter

Hey everyone!
Im tyring to create a proper ICMP chain that will blocked ICMP flooding
by Viruses and DOS attacks. Would the ruleset below be sufficient?
I cant simulate the exact ICMP flooding, so im only assuming that
limiting the ICMP burst to 10 /sec and limiting it to 5/sec.

Any input is appreciated!!

#####################
#####ICMP CHAINS#####
#####################
/sbin/iptables -N ICMP
/sbin/iptables -F ICMP
/sbin/iptables -A ICMP -m limit -p ICMP -i eth2 --limit 1 --limit-burst
10
/sbin/iptables -A ICMP -m limit -p ICMP -i eth1 --limit 1 --limit-burst
10
/sbin/iptables -A ICMP -m limit -p ICMP -i eth0 --limit 1 --limit-burst
10
/sbin/iptables -A ICMP -p icmp --icmp-type echo-reply -j ACCEPT
/sbin/iptables -A ICMP -p icmp --icmp-type destination-unreachable -j
ACCEPT
/sbin/iptables -A ICMP -p icmp --icmp-type source-quench -j ACCEPT
/sbin/iptables -A ICMP -p icmp --icmp-type time-exceeded -j ACCEPT
#/sbin/iptables -A ICMP -p icmp --icmp-type echo-request  -j ACCEPT
/sbin/iptables -A ICMP -p icmp --icmp-type echo-request -m limit --limit
5/second  -j ACCEPT
/sbin/iptables -A ICMP -p icmp -j LOG --log-level 5 --log-prefix "ICMP
DROP: "
/sbin/iptables -A ICMP -p icmp -j DROP


regards
edmund



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-10-16  2:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-15  3:54 ICMP floods Edmund Turner
2003-10-15  7:06 ` Alistair Tonner
2003-10-15  7:18   ` Michael Kearey
2003-10-15  7:29     ` Edmund Turner
2003-10-15  7:31     ` Alistair Tonner
2003-10-15 16:36 ` Jim Carter
2003-10-16  2:38   ` Edmund Turner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox