I read that certain types¹ of ICMP packets can be harmful. Questions:
Which ones and why?
How should I layout an iptables ruleset to handle each type of ICMP packet?
Should I rate-limit any of these types of ICMP packets? And how?
[¹] The types I read about: Redirect (5), Timestamp (13) and Address Mask Request (17).
We are under a heavy icmp flood attack. Tcpdump shows the result below. Altough we have blocked ICMP with iptables tcpdump still prints icmp packets. I've also attached iptables configuration and "top" result.
CentOS 4.x
I've got several old CentOS 4.x systems and have configured iptables to allow ICMP traffic.
I am creating a NAT with iptables:
Computer A: eth0 (dhcp) + eth1 (static ip 192.168.0.1 - gateway)
Computer B: eth1 (static ip 192.168.0.2, using Computer A as gateway)
I know how to block ICMP outgoing requests (-A OUTPUT -p icmp --icmp-type echo-request -j DROP), but that would block ICMP requests from Computer A, but not from Computer B (in fact, only for Computer A - Computer B can keep doi
In iptables, I added the rules as below to limit the incoming icmp request packet rate. But it didn't work. Because after the 1st incoming icmp request was accepted by the 1st rule and my host replied, all the following icmp request will accepted by the 2nd rule, which will accept the incoming icmp request as ESTABLISHED state packet.
I run a gaming community on a colo with a 100Mbps port. I want to buy a very cheap 35 dollar server with the same 100Mbps port, and run pfSense to use as a hardware firewall. I'm dealing with a bunch of 14 year old kids that have access to botnets, so it can become a bit necessary to get something like this.
How can I set ICMP rate-limiting in a Cisco router?
Here on the manual page they only talk about ICMP unreachable messages:
ip icmp rate-limit unreachable [df] [ms] [log [packets] [interval-ms]]
Is there anything that also includes other ICMP message types? For instance, what if I want to set a limit on the number of time-exceeded messages sent?
Using ICMP And ICMP6 Service Objects In Firewall Builder
For the following iptables rule:
iptables -A INPUT -p icmp -m icmp --icmp-type 255 -j ACCEPT
I am not sure what the point of "-m" is given that "-p" is already present. Does it serve any purpose in this case?