ICMP types to allow
I know that some networks just drop all ICMP to prevent traceroutes but recently I've been been seeing problems related to fragementation and MTU and wondering if dropping ICMP is causing some of that (since Fragementation Needed packets can't get through). On the flip side of that there's the Source Quench and Fragmentation Needed DoS attacks which have recently become mildly popular (I've gotten a few hits on Snort but not that many).
I'd like to hear from the list what ICMP types firewall admins are allowing and why - what are the risks for allowing certain types vs. the risks of NOT allowing them?
Thanks,
Derick Anderson
Zitat von Derick Anderson <[email protected]>:
Quoted 8 lines
I know that some networks just drop all ICMP to prevent traceroutes but recently I've been been seeing problems related to fragementation and MTU and wondering if dropping ICMP is causing some of that (since Fragementation Needed packets can't get through). On the flip side of that there's the Source Quench and Fragmentation Needed DoS attacks which have recently become mildly popular (I've gotten a few hits on Snort but not that many).
Quoted 7 lines
I'd like to hear from the list what ICMP types firewall admins are allowing and why - what are the risks for allowing certain types vs. the risks of NOT allowing them?
Thanks,
Derick Anderson
We allow icmp type 8 (echo request) incoming against our firewall and all "related" and "established" icmp traffic, which should cover the MTU problem and should be save against blind spoofing.
Regards
Andreas
Quoted 8 lines · Derick Anderson
I know that some networks just drop all ICMP to prevent traceroutes but recently I've been been seeing problems related to fragementation and MTU and wondering if dropping ICMP is causing some of that (since Fragementation Needed packets can't get through). On the flip side of that there's the Source Quench and Fragmentation Needed DoS attacks which have recently become mildly popular (I've gotten a few hits on Snort but not that many).
Quoted 11 lines
I'd like to hear from the list what ICMP types firewall admins are allowing and why - what are the risks for allowing certain types vs. the risks of NOT allowing them?
Thanks,
Derick Anderson
Hello,
I generally allow at least those 3 icmp types: 3,11,12 - to ensure proper network functions.
refs: http://www.faqs.org/docs/iptables/icmptypes.html
regards,
Georgi Alexandrov
Quoted 7 lines · Derick Anderson
I know that some networks just drop all ICMP to prevent traceroutes but recently I've been been seeing problems related to fragementation and MTU and wondering if dropping ICMP is causing some of that (since Fragementation Needed packets can't get through). On the flip side of that there's the Source Quench and Fragmentation Needed DoS attacks which have recently become mildly popular (I've gotten a few hits on Snort but not that many).
ICMP is part of IP mechanisms. Break ICMP, you break IP. That's just as simple as this. Regarding "recent" ICMP DoSes, protections have been proposed (and added) to mitigate them, such as TCP sequence number check in ICMP citation.
In addition to this, Netfilter, unlike some popular proprietary products, provide a proper stateful ICMP filtering. Just use it. Valid ICMP errors will fall into RELATED state, others will be INVALID.
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!
Quoted 4 lines · Cedric Blancher
In addition to this, Netfilter, unlike some popular proprietary products, provide a proper stateful ICMP filtering. Just use it. Valid ICMP errors will fall into RELATED state, others will be INVALID.
Agreed. The payload on ICMP errors (which contains 28 bytes of the packet which generated the error) is inspected and compared against the state entry. This mean RELATED is more than capable of letting through needed ICMP errors and dropping the bogus stuff. So you are cool with types 3,4,5, & 11. The average perimeter does not need much more than that.
For a while there AIX was using 1500 byte type 8's for MTU path discovery instead of setting the DF flag in it's packets. They stopped this by default a few years back however (although the operator still has the option of turning this brain dead feature back on). So this may be an exception if you are dealing with these systems.
Someone already mentioned the other condition which is permitting type 8's between Windows AD systems. Obviously you should only do this if you need to and the range of permitted source IP's should be as restrictive as possible.
HTH,
Chris
Quoted 6 lines · Chris Brenton appeared and
Quoted 4 lines · Cedric Blancher
In addition to this, Netfilter, unlike some popular proprietary products, provide a proper stateful ICMP filtering. Just use it. Valid ICMP errors will fall into RELATED state, others will be INVALID.
Quoted 6 lines
Agreed. The payload on ICMP errors (which contains 28 bytes of the packet which generated the error) is inspected and compared against the state entry. This mean RELATED is more than capable of letting through needed ICMP errors and dropping the bogus stuff. So you are cool with types 3,4,5, & 11. The average perimeter does not need much more than that.
In addition to that you can add some general size limits for ICMP packets. Theoretically ICMP packets can have 64 kB and there are tools out there that use oversized packets for tunneling data.
Best,
René.
Signature · 3 lines
)\._.,--....,'``. Let GNU/Linux work for you while you take a nap. /, _.. \ _\ (`._ ,. R. Pfeiffer <lynx at luchs.at> + http://web.luchs.at/ `._.-(,_..'--(,_..'`-.;.' - System administration + Consulting + Teaching -
Quoted 4 lines
I'd like to hear from the list what ICMP types firewall admins are allowing and why - what are the risks for allowing certain types vs. the risks of NOT allowing them?
Well, I don't allow something, I block certain types so I can be sure that nothing is implicitly hindered:
for j in redirect router-advertisement router-solicitation 30; do
ipt -A INPUT -j DROP -p icmp --icmp-type "$j";
done;30 = UDP-traceroute, but iptables does not have a mnemonic name for it.
Jan Engelhardt