![]() |
|
|
|||||||
![]() |
Computer Security - Ok to let all ICMP traffic through firewall? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
|
|
#3 |
|
Posts: n/a
|
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 |
|
|
|
#4 |
|
Posts: n/a
|
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 |
|
|
|
#5 |
|
Posts: n/a
|
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 |
|
|
|
#6 |
|
Posts: n/a
|
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 |
|
|
|
#7 |
|
Posts: n/a
|
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 |
|
|
|
#8 |
|
Posts: n/a
|
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 |
|
|
|
#9 |
|
Posts: n/a
|
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 |
|
|
|
#10 |
|
Posts: n/a
|
"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 |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |