Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Joel Newkirk <netfilter@newkirk.us>
To: "Robert P. J. Day" <rpjday@mindspring.com>,
	iptables mailing list <netfilter@lists.netfilter.org>
Subject: Re: more questions about kernel config options for iptables
Date: Tue, 8 Apr 2003 03:04:25 -0400	[thread overview]
Message-ID: <200304080304.25765.netfilter@newkirk.us> (raw)
In-Reply-To: <Pine.LNX.4.44.0304071706510.20955-100000@dell>

On Monday 07 April 2003 05:18 pm, Robert P. J. Day wrote:
>   having poked around even more in the options, i must say
> i'm a little puzzled.  mostly, i'm interested in understanding
> what some of these options do all by themselves, so forgive me
> if i end up repeating myself.
>
>   first, the basic Connection tracking option claims to be
> necessary for masq/NAT.  what value is that option if it is
> the only one selected?  it may be *necesasry* for masq/NAT,
> but it certainly doesn't seem to be *sufficient*.  what is
> the value of selecting that single option to the exclusion
> of all others.  what does it allow you to do?

Conntrack is what supports stateful filtering - without it you won't have 
the "--state" match, and can only filter explicitly on IPs, port 
numbers, etc.

>   next, notice that "IP tables support" also claims to be
> necessary for masq/NAT.  if that's the case, it would seem
> that these two options should somehow be interdependent.

Well, if you're going to use MASQUERADE then you need iptables support, 
even if you're not going to use iptables for any filtering.

>   another way of looking at it might be, why would anyone
> select "Connection tracking in the first place"?  might it
> not be more reasonable to have the user select the
> *functionality* they want, and have something like
> that basic connection tracking option as an invislble
> dependency?

For some users, perhaps, but Linux has grown up in (or has gathered, 
depends on your perspective) a community of people who want to know what 
is going on, and have fine-grain control over it at will.  Perhaps some 
day there will be a "make easyconfig" option that will set whole banks 
of appropriate settings based on high-level spoon-fed questions 
targeting a completely non-technical user.  But ATM I'm not aware of any 
'real' kernel config working this way, as kernel building is still 
targetted largely at the knowledgeable linux-savvy user/admin.

>   to that end, it would make more sense to have a restructured
> menu with more obvious options like
>
>   Basic filtering
>   Simple NAT
>   Masquerading
>
> and so on.  the actual object files associated with these
> *functions* are of no interest to the user.  he/she cares
> only about what can be done afterwards.
>
>   here's another question.  notice the options under
> "Connection tracking".  first, i'm aware that because of
> the way FTP works, you need some connection tracking ability
> to filter it properly.  so this is just straight FTP
> filtering.

Actually you can filter it (presuming you mean 'allow it to pass') 
without conntrack, but your resulting firewall is not nearly as tight as 
it would otherwise be...

>   note, however, that the next three options -- IRC,
> TFTP and Amanda -- refer to using those protocols
> in conjunction with NAT or masquerading.  if this is
> the case, i can see having FTP in one submenu associated
> with filtering, with the others in a submenu associated
> with NAT/masq.  it just seems to make more sense that way.

Actually all four (and others) are conntrack and nat helpers that are 
needed both for stateful filtering AND nat, AFAIK.

>   anyway, comments?

Not to be a smartass, but if you're unsatisfied with the options or their 
groupings, you can always contribute to the kernel effort... :^) 
{kernelsourcetreeroot}/net/ipv4/netfilter/Config.in  is the file that 
controls the construction of the netfilter/iptables-related options 
during make xconfig/menuconfig etc.

> rday

j




  reply	other threads:[~2003-04-08  7:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-07 21:18 more questions about kernel config options for iptables Robert P. J. Day
2003-04-08  7:04 ` Joel Newkirk [this message]
2003-04-08  7:44   ` Joel Newkirk
2003-04-08 11:17     ` Arnt Karlsen
2003-04-08 11:01   ` Robert P. J. Day
2003-04-08 11:55     ` Cedric Blancher
2003-04-08 12:23       ` Robert P. J. Day
2003-04-08 12:59         ` Cedric Blancher
2003-04-08 13:04           ` Robert P. J. Day
2003-04-08 13:54           ` Robert P. J. Day
2003-04-08 15:09             ` Joel Newkirk
2003-04-08 15:11               ` Robert P. J. Day
2003-04-08 18:27                 ` OT: video cards, was: " Arnt Karlsen
2003-04-09  1:25               ` indev/outdev_name? Scott MacKay
  -- strict thread matches above, loose matches on Subject: below --
2003-04-08 16:03 more questions about kernel config options for iptables Daniel Chemko

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=200304080304.25765.netfilter@newkirk.us \
    --to=netfilter@newkirk.us \
    --cc=netfilter@lists.netfilter.org \
    --cc=rpjday@mindspring.com \
    /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