Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Richard Horton <arimus.uk@googlemail.com>
To: netfilter@vger.kernel.org
Subject: Re: state ESTABLISHED, RELATED
Date: Thu, 16 Jul 2009 09:21:44 +0100	[thread overview]
Message-ID: <56378e320907160121wc060b93sd193f2ba4fdb88c2@mail.gmail.com> (raw)
In-Reply-To: <1247726560.15457.77.camel@TestField.intranet.bem.md>

2009/7/16 Simion Onea <simionea@gmail.com>:!
>
> In my opinion it is good practice. We have been using such a rule for
> some time. In our set of iptables rules we have these in the beginning:
>
> #------
.... snip  long set of rules...

> The same rules can also be applied to FORWARD chain.
>

As a thought could you add those to a custom tables, say for the sake
of example shared:

iptables -N shared
iptables -A shared <whatever>

then in the input chain and forward chains make the first rule a jump to shared.

This makes it easier to manage the 'common' rule set as you only need
to change it at a single point rather than having to remember to
change both occurances...


-- 
Richard Horton
Users are like a virus: Each causing a thousand tiny crises until the
host finally dies.
http://www.solstans.co.uk - Solstans Japanese Bobtails and Norwegian Forest Cats
http://www.pbase.com/arimus - My online photogallery

  reply	other threads:[~2009-07-16  8:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-15 20:25 state ESTABLISHED, RELATED Andrew Kolt
2009-07-16  6:42 ` Simion Onea
2009-07-16  8:21   ` Richard Horton [this message]
2009-07-16  8:54     ` Simion Onea
2009-07-16  8:32 ` Andrew Kolt

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=56378e320907160121wc060b93sd193f2ba4fdb88c2@mail.gmail.com \
    --to=arimus.uk@googlemail.com \
    --cc=netfilter@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox