netfilter and packets which are created locally

From: Ian Brown <hidden>
Date: 2006-06-26 14:39:48

Hello,
  I had looked at the diagrams and read the explanations
about netfilter in Netfilter Architecture page:
http://netfilter.org/documentation/HOWTO/netfilter-hacking-HOWTO-3.html

I want to make sure wheter I undestood something regarding
packets which are created locally (as opposed
to packets that are received on the network interface).

My question is: Do I understand the follwing 2 sceanrios right?
For local packets which are sent out of the machine
it seems to me to be the case. (Am I right?):
Such packets , that are created locally on
the machine, first reach the NF_IP_LOCAL_OUT [5] hook.
Than they go to the routing stage, and than they go to
NF_IP_POST_ROUTING [4]. And then they go out ?
Such packets, which are created locally,  don't pass at all
at the [1] stage, NF_IP_PRE_ROUTING [1] , and not
in NF_IP_LOCAL_IN [2] stage and not in NF_IP_FORWARD [3] .

Is it true?


Suppose I create locally packets which are destined to
myself (like ping myself). I assume that they will go first to the
NF_IP_LOCAL_OUT [5] , than to the routing stage, but will they go
to the NF_IP_POST_ROUTING [4].?

And again,such packets, which are created locally,  don't pass at all
at the [1] stage, NF_IP_PRE_ROUTING [1] , and not
in NF_IP_LOCAL_IN [2] stage and not in NF_IP_FORWARD [3] .

Is it true?

IB
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help