All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Schaaf <bof@bof.de>
To: Ramin Alidousti <ramin@cannon.eng.us.uu.net>
Cc: Patrick Schaaf <bof@bof.de>,
	Christian Seberino <seberino@spawar.navy.mil>,
	netfilter@lists.samba.org
Subject: Re: iptables -F & iptables -X good enough *for all* tables/chains?
Date: Tue, 25 Jun 2002 08:04:51 +0200	[thread overview]
Message-ID: <20020625080451.C9475@oknodo.bof.de> (raw)
In-Reply-To: <20020624211912.GA27552@cannon.eng.us.uu.net>; from ramin@cannon.eng.us.uu.net on Mon, Jun 24, 2002 at 05:19:12PM -0400

> > > User defined chains are *not* tied to specific tables
> > > as far as I can tell.
> > 
> > Huh? User defined chains are tied to the table they are created in.
> > And I sometimes hate iptables for that...
> 
> Why? Reusability? What you do in mangle is not what you do in nat is
> not what you do in filter so I see little if not at all reusability.

I often have user defined chains with nothing but a list of "-s IP -j ACCEPT"
in them. In a "higher level" chain, I select on protocol and port, jumping
to such an "IP address list" chain. It sometimes happens that I need the
exact same list of IP addresses both in the filter and nat/mangle tables,
and I have to duplicate them, then.

I hate it when I have to duplicate stuff needlessly.

On the other hand, as the chains are generated (e.g. by parsing
/etc/hosts.allow), it's not a problem to handle the situation,
and iptables cannot be changed to the "slightly better" behaviour
for compatibility reasons. So don't get me wrong: this is not
a feature request.

best regards
  Patrick


      reply	other threads:[~2002-06-25  6:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-24 18:41 iptables -F & iptables -X good enough *for all* tables/chains? Christian Seberino
2002-06-24 18:45 ` Default DROP policy for mangle and nat in iptables necessary/wise? Christian Seberino
2002-06-24 19:02   ` Ed Street
2002-06-24 23:36     ` Christian Seberino
2002-06-25  0:11       ` Ramin Alidousti
2002-06-24 18:47 ` iptables -F & iptables -X good enough *for all* tables/chains? Ed Street
2002-06-24 19:57   ` Christian Seberino
2002-06-24 20:27     ` Ramin Alidousti
2002-06-24 20:34     ` Antony Stone
2002-06-24 21:20     ` Patrick Schaaf
2002-06-24 21:19       ` Ramin Alidousti
2002-06-25  6:04         ` Patrick Schaaf [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=20020625080451.C9475@oknodo.bof.de \
    --to=bof@bof.de \
    --cc=netfilter@lists.samba.org \
    --cc=ramin@cannon.eng.us.uu.net \
    --cc=seberino@spawar.navy.mil \
    /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.