All of lore.kernel.org
 help / color / mirror / Atom feed
* Why aren't INPUT and FORWARD chains available to a locally-generated packet?
@ 2021-08-11 14:12 Harry S
  2021-08-11 14:29 ` Florian Westphal
  2021-08-11 14:31 ` Reindl Harald
  0 siblings, 2 replies; 7+ messages in thread
From: Harry S @ 2021-08-11 14:12 UTC (permalink / raw)
  To: netfilter

Hello,

I'm unable to understand why in Netfilter there are no INPUT versus
FORWARD chain choices right after the packet has traversed the OUTPUT
chain? Currently, a locally-generated packet goes straight from OUTPUT
to POSTROUTING!

Let's say a process on a router host generates a packet. This packet
goes to the OUTPUT chain, following which a routing decision is made.
Now, this packet could be destined either for the loopback interface,
or for one of the host's many ethernet interfaces. If so, why
shouldn't Netfilter bring the packet to the same INPUT / FORWARD
decision-fork in the path that exists for an incoming packet soon
after it has crossed PREROUTING?

I have consulted *many* online sources, including Linux Network
Administrator's Guide, and the ipables tutorial by Oskar Andreasson,
but none of these explain this point at all.

Would greatly appreciate it if someone could clarify.

Regards,
/HS

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-08-12  7:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-11 14:12 Why aren't INPUT and FORWARD chains available to a locally-generated packet? Harry S
2021-08-11 14:29 ` Florian Westphal
     [not found]   ` <CACj4R39Whos6mVwo1CsvR7me61raq2udnxevjBYgMru3V__JGQ@mail.gmail.com>
2021-08-11 21:09     ` Florian Westphal
2021-08-12  1:37       ` Harry
2021-08-12  7:58         ` Reindl Harald
2021-08-11 14:31 ` Reindl Harald
2021-08-11 23:37   ` Harry

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.