From: tom <tom@t0mb.net>
To: Hugo Mildenberger <Susan.Scheibe@t-online.de>
Cc: netfilter@lists.netfilter.org
Subject: Re: RELATED connections and the feeling of security
Date: Fri, 13 Apr 2007 19:05:53 +0100 [thread overview]
Message-ID: <461FC681.20609@t0mb.net> (raw)
In-Reply-To: <200704131202.27971.Hugo.Mildenberger@t-online.de>
Hugo Mildenberger wrote:
> Sifting through a workstation firewall log file some time ago, I stumbled on
> an ip-address translating to a webserver of a well known German newspaper
> (actually it was www.faz.net) which apparently had tried to intiate a
> connection to port 80 of my workstation, which itself was sitting behind an
> NATing router running an iptables based firewall on top of linux.
>
> But it was not iptables, who prevented this form of professional curiosity,
> it was the windows firewall running on the workstation itself, who stopped
> and disclosed it.
>
> Looking at my iptables rule set, I asked myself, why all over the world nearby
> everybody suggests inexperienced users to allow connections based
> on "RELATED" state. You can find literally thousands of such well-meant
> hints: oh, you need a firewall setup, here it is:
>
> "iptables -A INPUT -m state --state ESTABLISHED, RELATED - j ACCEPT"
>
Could it be related to the syntax error above hehe
> This means to allow inbound connections having nothing in common with the
> initiating outbound connection, except for the ip-address pair used by the
> initiating connection, leaving your nominal firewalled systems exposed to any
> malicious site you accidentally stumble on, whereas using "ESTABLISHED" alone
> here would restrict connections to be outbound only.
>
> Also the "Shorewall" firewall ruleset actually builds upon "RELATED" state,
> and has dropped any provisions it made in earlier revisions to switch off
> this feature at least optionally.
>
> I felt alienated when I noticed a certain thread concerning that very same
> issue on Tom Eastep's "Shorewall" site. A user (not me), who had complained
> about this insecure prerequisite was informed by Mr. Eastep personally, that
> he had the choice either to use Shorewall and accept those related inbound
> connections, or not to use shorewall at all.
>
> The balance is: What kind of security a SPI firewall product provides, when
> each host you contact from inside is able to invade your private network
> within a few milliseconds? Most users are not aware that following the simple
> ruleset once proposed in a popular netfilter FAQ leads to a system showing
> the behavior of a molten polarity protection diode: you would not notice it
> just until the moment someone permutes the poles.
>
>
> Best Regards
>
> Hugo Mildenberger
>
>
prev parent reply other threads:[~2007-04-13 18:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-13 10:02 RELATED connections and the feeling of security Hugo Mildenberger
2007-04-13 11:30 ` Cedric Blancher
2007-04-13 12:57 ` Hugo Mildenberger
2007-04-13 14:31 ` Cedric Blancher
2007-04-13 19:21 ` Hugo Mildenberger
2007-04-13 17:54 ` Pascal Hambourg
2007-04-13 19:51 ` Martijn Lievaart
2007-04-13 21:52 ` Pascal Hambourg
2007-04-13 18:05 ` tom [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=461FC681.20609@t0mb.net \
--to=tom@t0mb.net \
--cc=Susan.Scheibe@t-online.de \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.