From: scarab@echostar.pl
To: netfilter-devel@lists.netfilter.org
Subject: NF_IP_PRE_ROUTING?
Date: Fri, 16 Sep 2005 21:45:35 +0200 [thread overview]
Message-ID: <200509162145.35698.scarab@echostar.pl> (raw)
Hi
I wrote simple linux firewall (nf_hook based). Below is part of that code:
------------
static struct nf_hook_ops lpf_nfh;
lpf_nfh.hook = lpf_hook_fn;
lpf_nfh.hooknum = NF_IP_PRE_ROUTING;
lpf_nfh.pf = PF_INET;
lpf_nfh.priority = NF_IP_PRI_FIRST;
nf_register_hook(&lpf_nfh);
--------------
I have question. It should get only incoming packets so why it takes outgoing
to? If i will use NF_IP_POST_ROUTING [4] then it should get outgoing packets
right? I found that diagram in "Linux netfilter hacking howto":
--->[1]--->[ROUTE]--->[3]--->[4]--->
| ^
| |
| [ROUTE]
v |
[2] [5]
| ^
| |
v |
Can anyone tell me why it works that way?
Thank you
PS. Sorry for my poor english
next reply other threads:[~2005-09-16 19:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-16 19:45 scarab [this message]
2005-09-17 1:30 ` NF_IP_PRE_ROUTING? scarab
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=200509162145.35698.scarab@echostar.pl \
--to=scarab@echostar.pl \
--cc=netfilter-devel@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.