Hi,
I'm in need of some help on details of Linux's packet filtering.
I've actually read the iptables command's man pages and a few
other docs from
www.netfilter.org.
Also, I've just started using Linux a few weeks ago (before this,
my last used was in 1993 for a few months) so I may get some terms
wrong. Please correct me so that I can be less confusing in the
future.
I understand that some of my questions can be answered by build
the kernel or reading some source code. But I'm hoping to get
answers quicker here.
Here're my questions: (and thank you very much)
1. "iptables" is the name of a command that a user run to modify
Linux's built-in packet filters. What is the name of the Linux's
built-in filters? (I've been calling it iptables, but I think I
may be wrong.)
2. Does the Linux's built-in packet filters use its NetFilter
facility?
3. If Linux's built-in packet filters use NetFilter, what is its
priority (what value is set for field "priority" in "struct
nf_hook_ops") ?
4. It Linux's built-in packet filters do not use NetFilter, then
is it called before NetFilter or after? If this is the case,
could you help me out by providing a function name or something?
(I casually looked into the kernel's networking code and only
see NetFilter being called and not built-in packet filtering.)
5. While configuring to build a kernel (make menuconfig), I see
the option of "Network packet filtering (replaces ipchains)" .
Does this configure the built-in filter or NetFilter ?
6. If #5 configures NetFilter, then why is "replaces ipchains"
in the heading? I thought the new bulit-in packet filter replaces
ipchains ?
Thanks,
Ching Tai