Go Back   Velocity Reviews > Newsgroups > Computer Security
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Computer Security - Ok to let all ICMP traffic through firewall?

 
Thread Tools Search this Thread
Old 09-22-2005, 11:14 PM   #1
Default Ok to let all ICMP traffic through firewall?


My question is Should a firewall let all ICMP traffic through because
there is no real risk if they do?

+++++

Here is the thinking behind my question: Robin Walker's cable modem
webpages at
<http://homepage.ntlworld.com/robin.d.h.walker/cmtips/index.html>
look to me as if they are technically sound. But they are a few
years old. I would like to know what people think about the advice
he gives about ICMP traffic and if it is still true these days.

He suggests that firewalls should let all ICMP traffic through and
that there is no real risk if they do that. At
http://snipurl.com/hvox he writes the following section. I have cut
it down a bit.


------------------- START QUOTE -----------------

STEALTH-MODE FIREWALLS CONSIDERED HARMFUL

Some firewalls have a hiding mechanism they call stealth. ... In
stealth mode, the firewall causes the PC just to ignore incoming
connection attempts, rather than rejecting them, as would be normal
for incoming connection attempts to closed ports.

.... causes some difficulties. For a start, Internet standard RFC 1122
states categorically about ICMP Echoes (ping):

"3.2.2.6 Echo Request/Reply: RFC-792. Every
host MUST implement an ICMP Echo server function
that receives Echo Requests and sends
corresponding Echo Replies."

So you are strongly advised not to apply stealth techniques to the
ICMP protocol.

A commonly heard objection to allowing ICMP Echo Replies is that it
gives away information to hackers that there is a live connection on
this IP address. Such objections are not well-founded, and can be
safely ignored.

There is no evidence in practice that any hacker has been aided by
the presence of an ICMP Echo Reply.

Hackers do not typically write code that tests an address with ICMP
Echo before launching a hostile probe: they always send the hostile
probe directly: either it works or it doesn't, and information from
ICMP adds nothing to the analysis.

------------------- END QUOTE -----------------

So Should a firewall let all ICMP traffic through? Is it ok to do
that?


Franklin
  Reply With Quote
Old 09-22-2005, 11:19 PM   #2
Leythos
 
Posts: n/a
Default Re: Ok to let all ICMP traffic through firewall?
In article <96D9EC61DFA1E71F3M4@66.250.146.159>,
says...
> My question is Should a firewall let all ICMP traffic through because
> there is no real risk if they do?


The common sense rule is to LET NOTHING IN that doesn't have a good
reason to be let in.

Why do you want to take a minimal risk if you don't have too?

--


remove 999 in order to email me


Leythos
  Reply With Quote
Old 09-22-2005, 11:30 PM   #3
Bob Eager
 
Posts: n/a
Default Re: Ok to let all ICMP traffic through firewall?
On Thu, 22 Sep 2005 22:19:07 UTC, Leythos <> wrote:

> In article <96D9EC61DFA1E71F3M4@66.250.146.159>,
> says...
> > My question is Should a firewall let all ICMP traffic through because
> > there is no real risk if they do?

>
> The common sense rule is to LET NOTHING IN that doesn't have a good
> reason to be let in.


In practice, you need to let a few ICMP messages through, then. For
example, source quench and destination unreachable.

--
[ 7'ism - a condition by which the sufferer experiences an inability
to give concise answers, express reasoned argument or opinion.
Usually accompanied by silly noises and gestures - incurable, early
euthanasia recommended. ]


Bob Eager
  Reply With Quote
Old 09-22-2005, 11:36 PM   #4
Peter
 
Posts: n/a
Default Re: Ok to let all ICMP traffic through firewall?
Franklin <> wrote:
> My question is Should a firewall let all ICMP traffic through
> because there is no real risk if they do?


No, because some ICMP messages aren't useful. However blocking all
ICMP is throwing the baby out with the bathwater and will cause more
bother than not blocking anything.

I would suggest allowing ICMP Echo and Echo Reply (so ping works),
Destination Unreachable (which includes "fragmentation required",
essential for PMTUD to work) and Time Exceeded (so traceroute works.)
Everything else looks to be fair game to drop.

While I'm suggesting firewall rules, can people also not silently drop
SYNs to port 113 please? All sorts of servers try RFC1413 lookups and
stall while waiting for a response. The firewall user is usually the
first to complain that it's taking ages to connect to a certain remote
server.

--
PGP key ID E85DC776 - finger for full key
/:.*posting.google.com.*/HX-Trace:+j


Peter
  Reply With Quote
Old 09-22-2005, 11:49 PM   #5
Walter Roberson
 
Posts: n/a
Default Re: Ok to let all ICMP traffic through firewall?
In article <176uZD2KcidF-pn2->,
Bob Eager <> wrote:
:In practice, you need to let a few ICMP messages through, then. For
:example, source quench and destination unreachable.

In practice, crackers will send you unsolicited source quenches,
either as a side effect of them DoS'ing the host with forged packets,
or else with the hope of DoS'ing you by interfering with your flow
of traffic to other locations.

In practice, you don't need to listen to source quench. If you
are sending data too quickly for a router, the router will drop
some of the traffic. If the traffic was TCP then the normal TCP
recovery mechanisms will kick in and will act to slow down your
rate of transmission. If the traffic was UDP or anything other
"unreliable" protocol, then by definition the transmissions are
expected to be unreliable so dropping the traffic should not be
important. [If it -was- important, then you shouldn't be using an
unreliable transmission protocol.]
--
Goedel's Mail Filter Incompleteness Theorem:
In any sufficiently expressive language, with any fixed set of
email filtering algorithms, there exists at least one spam message
which the algorithms are unable to filter out.


Walter Roberson
  Reply With Quote
Old 09-22-2005, 11:57 PM   #6
Wolfgang Kueter
 
Posts: n/a
Default Re: Ok to let all ICMP traffic through firewall?
Franklin wrote:

> My question is Should a firewall let all ICMP traffic through because
> there is no real risk if they do?
> [...]
> ------------------- START QUOTE -----------------
>
> STEALTH-MODE FIREWALLS CONSIDERED HARMFUL
> [...]
> So Should a firewall let all ICMP traffic through?


No.

> Is it ok to do that?


No. While the example you quoted from the web page is still correct and
there is nothing wrong with echo request and echo reply and the various
destination unreachable messages the are other icmp messages that should be
filted.

http://seclists.org/lists/bugtraq/2005/May/0122.html

Wolfgang


Wolfgang Kueter
  Reply With Quote
Old 09-23-2005, 12:06 AM   #7
Walter Roberson
 
Posts: n/a
Default Re: Ok to let all ICMP traffic through firewall?
In article <433331d9$0$32652$>,
Peter <> wrote:
:However blocking all
:ICMP is throwing the baby out with the bathwater and will cause more
:bother than not blocking anything.

"more bother" depends on whether you are being deliberately attacked
or not.


:I would suggest allowing ICMP Echo and Echo Reply (so ping works),

Typically, outsiders have no business mapping out exactly which
of your systems exist or are up right now, so dropping most incoming icmp
echo is a common security precaution. Whether to allow icmp echo
to public-facing servers varies with circumstance.

--
If you like, you can repeat the search with the omitted results included.


Walter Roberson
  Reply With Quote
Old 09-23-2005, 12:13 AM   #8
Leythos
 
Posts: n/a
Default Re: Ok to let all ICMP traffic through firewall?
In article <176uZD2KcidF-pn2->, rde42
@spamcop.net says...
> On Thu, 22 Sep 2005 22:19:07 UTC, Leythos <> wrote:
>
> > In article <96D9EC61DFA1E71F3M4@66.250.146.159>,
> > says...
> > > My question is Should a firewall let all ICMP traffic through because
> > > there is no real risk if they do?

> >
> > The common sense rule is to LET NOTHING IN that doesn't have a good
> > reason to be let in.

>
> In practice, you need to let a few ICMP messages through, then. For
> example, source quench and destination unreachable.


Wrong, you don't NEED to allow anything. You may FEEL that you do, but
we've got almost 100 networks that don't allow ICMP or anything else
inbound and they work just fine, and we'll not change them.

--


remove 999 in order to email me


Leythos
  Reply With Quote
Old 09-23-2005, 12:17 AM   #9
Leythos
 
Posts: n/a
Default Re: Ok to let all ICMP traffic through firewall?
In article <433331d9$0$32652$>,
says...
> Franklin <> wrote:
> > My question is Should a firewall let all ICMP traffic through
> > because there is no real risk if they do?

>
> No, because some ICMP messages aren't useful. However blocking all
> ICMP is throwing the baby out with the bathwater and will cause more
> bother than not blocking anything.
>
> I would suggest allowing ICMP Echo and Echo Reply (so ping works),
> Destination Unreachable (which includes "fragmentation required",
> essential for PMTUD to work) and Time Exceeded (so traceroute works.)
> Everything else looks to be fair game to drop.
>
> While I'm suggesting firewall rules, can people also not silently drop
> SYNs to port 113 please? All sorts of servers try RFC1413 lookups and
> stall while waiting for a response. The firewall user is usually the
> first to complain that it's taking ages to connect to a certain remote
> server.


There is NO BOTHER - you set the rules and then let them work. You don't
need to allow PING, in fact why the heck would you want to allow PING,
it's not like it's a valid test that your network is alive - we've got
tons of commercial networks that block PING and none of the users even
notice.

Allowing anything inbound, even to the firewall, that doesn't
specifically need to be let in is a bad move.

Allowing in minimal traffic that "might" not be a threat is like
trusting Windows Firewall with File/Printer sharing enabled on a
computer directly connected to the Internet with all of your financial
data stored on it in a text file that is name "ALL MY FINANCIAL
DATA.TXT" sitting in the root.

--


remove 999 in order to email me


Leythos
  Reply With Quote
Old 09-23-2005, 12:48 AM   #10
Hairy One Kenobi
 
Posts: n/a
Default Re: Ok to let all ICMP traffic through firewall?
"Leythos" <> wrote in message
news:...
> In article <433331d9$0$32652$>,
> says...
> > Franklin <> wrote:
> > > My question is Should a firewall let all ICMP traffic through
> > > because there is no real risk if they do?


<snip>

> You don't
> need to allow PING, in fact why the heck would you want to allow PING,
> it's not like it's a valid test that your network is alive - we've got
> tons of commercial networks that block PING and none of the users even
> notice.


Undoubtedly the case. Although one could quote lots of instances where it's
been damned useful.

Well, *I* certainly can - usually when the web server has had a bit of a
funny turn, and one needs to tell if it's the server behind the firewall
(fat chance of fixing something from an adjacent continent), or whether it's
the ISP playing silly buggers with the connection (marginally more hope of
getting something sorted).

As goes firewalls - I'm sure that most have already seen it, but:
http://www.dilbert.com/comics/dilber...3960050912.gif

--

Hairy One Kenobi

Disclaimer: the opinions expressed in this opinion do not necessarily
reflect the opinions of the highly-opinionated person expressing the opinion
in the first place. So there!




Hairy One Kenobi
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to watch outgoing traffic into Cisco Pix Firewall torunbd Hardware 1 08-20-2009 09:37 PM
Allowing HTTP traffic inside cisco router briefus General Help Related Topics 1 08-12-2009 04:58 PM
How to activate Remote Assistance with XP using Windows Live Messenger Oziisr General Help Related Topics 0 02-01-2008 04:45 PM
cisco 837 route traffic to an external PC base firewall. dtroth54 Hardware 0 09-09-2007 06:25 AM
Cisco 837 ADSL router configuration help needed!! azzaams General Help Related Topics 2 09-09-2007 04:22 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46