All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: ICMP types to allow
@ 2005-12-21 16:31 Peter E. Fry
  0 siblings, 0 replies; 15+ messages in thread
From: Peter E. Fry @ 2005-12-21 16:31 UTC (permalink / raw)
  To: Derick Anderson, netfilter


----- Original Message -----
From: "Derick Anderson" <danderson@vikus.com>
To: <netfilter@lists.netfilter.org>
Subject: ICMP types to allow
Date: Wed, 21 Dec 2005 08:45:04 -0500

> 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?

  In Cisco terms, I always allow
"administratively-prohibited", "echo", "echo-reply",
"packet-too-big", "time-exceeded", "unreachable" (I'm too
lazy to pull out the actual types), with appropriate shaping
and rate-limits to avoid killing the small upstream on my
DSL and/or becoming a 1:1 reflector of any significance.  In
ten years (five with ISDN), I've never actually been
seriously attacked through ICMP -- if someone's going to
flood you, they'll flood you, and it'd take one lazy bastage
not to adapt to whatever filters you have in place.  The
most trash I've seen has not been ICMP, but UDP from berserk
M$ virii (in part because I'm a 'Net-nobody and I haven't
gotten the urge lately to hop on IRC and call all of the
2600 types a bunch of wusses who can't touch my mighty DSL).
 Me, I like ICMP -- I find it useful with little
risk/impact.  Your mileage may vary.

Peter E. Fry



^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: ICMP types to allow
@ 2005-12-21 19:12 Derick Anderson
  0 siblings, 0 replies; 15+ messages in thread
From: Derick Anderson @ 2005-12-21 19:12 UTC (permalink / raw)
  To: netfilter

 

> -----Original Message-----
> From: John A. Sullivan III [mailto:jsullivan@opensourcedevel.com] 
> Sent: Wednesday, December 21, 2005 1:49 PM
> To: Derick Anderson
> Cc: netfilter@lists.netfilter.org
> Subject: RE: ICMP types to allow
> 
> On Wed, 2005-12-21 at 13:36 -0500, Derick Anderson wrote:
> > After reading the ICMP state machine section of the 
> Netfilter tutorial 
> > 
> [http://iptables-tutorial.frozentux.net/iptables-tutorial.html#ICMPCON
> > NE CTIONS] it appears that ICMP traffic related to existing TCP and 
> > UDP connections falls under the RELATED,ESTABLISHED rules.
> > 
> > So someone correct me if I'm wrong, but this means that any 
> valid ICMP 
> > error message would get picked up by a '-A FORWARD -m state --state 
> > RELATED,ESTABLISHED -j ACCEPT' at the start of the chain, and so (as
> > lst_hoe01 stated) allowing type 8 is all you really need to 
> do, correct?
> > (and a little reading goes a long way... =)
> > 
> > Thanks,
> > 
> > Derick Anderson
> >  
> > 
> Somewhere I recall Microsoft documentation asking that all 
> ICMP traffic be allowed for Active Directory.  I never 
> bothered to find out what exactly was needed and why.  Does 
> anyone know if a properly functioning Active Directory needs 
> anything other than echo? - John
> --
> John A. Sullivan III
> Open Source Development Corporation
> +1 207-985-7880
> jsullivan@opensourcedevel.com
> 
> If you would like to participate in the development of an 
> open source enterprise class network security management 
> system, please visit http://iscs.sourceforge.net
> 


I think all AD requires is echo request (which is how it "determines"
whether domain controllers, DNS servers, gateways, etc. are up). Block
ICMP echo request at your firewall/gateway and netdiag will be very
unhappy. I don't believe they "require" any other types but you never
know with Microsoft. 

A google for "active directory 2003 icmp required" (no quotes) provides
the official story (the first two hits are hugely long TechNet articles
so search for ICMP within them), which is basically that ICMP echo
request is used by several services to determine whether hosts are up
and for tracert to work, and that Path MTU makes everybody happy.

Hope that helps,

Derick



^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: ICMP types to allow
@ 2005-12-21 18:36 Derick Anderson
  2005-12-21 18:48 ` John A. Sullivan III
  2005-12-22  0:29 ` René Pfeiffer
  0 siblings, 2 replies; 15+ messages in thread
From: Derick Anderson @ 2005-12-21 18:36 UTC (permalink / raw)
  To: netfilter


After reading the ICMP state machine section of the Netfilter tutorial
[http://iptables-tutorial.frozentux.net/iptables-tutorial.html#ICMPCONNE
CTIONS] it appears that ICMP traffic related to existing TCP and UDP
connections falls under the RELATED,ESTABLISHED rules.

So someone correct me if I'm wrong, but this means that any valid ICMP
error message would get picked up by a '-A FORWARD -m state --state
RELATED,ESTABLISHED -j ACCEPT' at the start of the chain, and so (as
lst_hoe01 stated) allowing type 8 is all you really need to do, correct?
(and a little reading goes a long way... =)

Thanks,

Derick Anderson
 


^ permalink raw reply	[flat|nested] 15+ messages in thread
* ICMP types to allow
@ 2005-12-21 13:45 Derick Anderson
  2005-12-21 14:16 ` lst_hoe01
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Derick Anderson @ 2005-12-21 13:45 UTC (permalink / raw)
  To: netfilter

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


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

end of thread, other threads:[~2006-01-03  7:33 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-21 16:31 ICMP types to allow Peter E. Fry
  -- strict thread matches above, loose matches on Subject: below --
2005-12-21 19:12 Derick Anderson
2005-12-21 18:36 Derick Anderson
2005-12-21 18:48 ` John A. Sullivan III
2005-12-22  0:29 ` René Pfeiffer
2005-12-22  2:08   ` Chris Brenton
2005-12-22 11:03     ` René Pfeiffer
2005-12-22  8:50   ` lst_hoe01
2005-12-21 13:45 Derick Anderson
2005-12-21 14:16 ` lst_hoe01
2005-12-21 16:27 ` Georgi Alexandrov
2005-12-21 19:22 ` Cedric Blancher
2005-12-21 22:01   ` Chris Brenton
2005-12-22  0:32     ` René Pfeiffer
2006-01-03  7:33 ` 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.