All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nick Drage <nickd@funkyjesus.org>
To: netfilter mailing list <netfilter@lists.netfilter.org>
Subject: Re: what filtering to do on the OUTPUT chain?
Date: Wed, 23 Oct 2002 00:31:46 +0100	[thread overview]
Message-ID: <20021023003146.D8681@funkyjesus.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0210221605170.15445-100000@localhost.localdomain>; from rpjday@mindspring.com on Tue, Oct 22, 2002 at 04:10:46PM -0400

On Tue, Oct 22, 2002 at 04:10:46PM -0400, Robert P. J. Day wrote:
> On 22 Oct 2002, Cedric Blancher wrote:
> > > Le mar 22/10/2002 à 20:57, Robert P. J. Day a écrit :
> > >   i've had a number of people tell me that, while they put a good deal
> > > of thought into their INPUT filtering, they simply ACCEPT all outgoing
> > > traffic since, if their input filtering is working properly, there's
> > > no reason to stop outgoing packets.
> > >   comments?
> > 
> > Once you have accepted the fact that your box can get compromised, you
> > easily understand why you should filter outgoing traffic. Moreover,
> > maximum security relies on the "lesser privilege rule" which specifies
> > that an object must not be allowed to do more than he has to. According
> > to this, you have to filter network output.

Agreed.

> i understand that, for extra security, you should also filter on the
> OUTPUT chain.  but someone suggested to me that, if i get hacked because
> someone gets through my INPUT filter rules, they have a good chance of
> being able to change my ruleset anyway and remove the filtering.

Not true.  Compromising some user level application, or some chrooted
server, does not automatically allow the malicious third party to alter your
firewall rules.

> this is why this person suggested that i should concentrate my efforts on
> hardening my INPUT filter, and not worry a whole lot about the OUTPUT
> ruleset.

Security is achieved through strength in depth.  If you're running any kind
of server you will have to allow packets in, to a webserver say.  However,
not allowing that webserver to do anything but send replies, rather than
permitting it to do anything ( DoS the Net, download files to the local
system, and so on ) will greatly restrict the options at the malicious third
party's disposal.

> in other words, if i get hacked, i'm pretty much toast anyway,

Not true.

> and can't trust *anything* about my system anymore.

Not true.

> i realize it sounds like having sloppier security not worrying about the
> OUTPUT ruleset.  i guess it would help me if someone could provide
> *specific* examples of how OUTPUT filtering adds to security beyond what
> would be provided by a well-designed INPUT ruleset.  a pointer to an FAQ
> or some other link would be fine.

"--cmd-owner" is your friend, your close, personal, bestest friend.

-- 
FunkyJesus System Administration Team



  parent reply	other threads:[~2002-10-22 23:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-22 18:57 what filtering to do on the OUTPUT chain? Robert P. J. Day
2002-10-22 20:03 ` Antony Stone
2002-10-22 23:26   ` Nick Drage
2002-10-22 20:09 ` Cedric Blancher
2002-10-22 20:10   ` Robert P. J. Day
2002-10-22 23:21     ` Cedric Blancher
2002-10-23  9:43       ` Antony Stone
2002-10-23 10:24         ` Cedric Blancher
2002-10-24 21:31         ` Nick Drage
2002-10-24 23:06           ` Antony Stone
2002-10-22 23:31     ` Nick Drage [this message]
2002-10-23  6:51       ` Cedric Blancher

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=20021023003146.D8681@funkyjesus.org \
    --to=nickd@funkyjesus.org \
    --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.