From: Georgi Alexandrov <tehlists@hotpop.com>
To: netfilter@lists.netfilter.org
Cc: allambhasker@yahoo.com
Subject: Re: input filter
Date: Wed, 05 Jan 2005 19:17:32 +0200 [thread overview]
Message-ID: <41DC212C.4050106@hotpop.com> (raw)
In-Reply-To: <20050104223520.2120.qmail@web53904.mail.yahoo.com>
Bhasker Allam wrote:
>Hi,
>I am a newbie and I was reading the howto for packet
>filter. The howto has the following picture:
>
>Incoming / \ Outgoing
> -->[Routing ]--->|FORWARD|------->
> [Decision] \_____/ ^
> | |
> v ____
> ___ / \
> / \ |OUTPUT|
> |INPUT| \____/
> \___/ ^
> | |
> ----> Local Process ----
>
>The input filtering is done only for local bound
>packets and after the routing decision. Is the above
>true ?
>
yes.
>Is there a facility to perform input filtering
>before the routing decision ? Thanks.
>
>
>
How come you know if it is INPUT or FORWARD before the routing decision ?
Won't the "routing decision" decide if the packet(s) will be destined
for INPUT (to the local machine) or FORWARD (for the machines behind
you/gw/fw).
The two chains and tables that are hit by incoming packets before the
routing decision are:
1. table mangle, chain PREROUTING (from the iptables-tutorial: "This
chain is normally used for mangling packets, i.e., changing TOS and so on.")
then:
2: table nat, chain PREROUTING (from the iptables-tutorial: "This chain
is used for DNAT mainly. Avoid filtering in this chain since it will be
bypassed in certain cases.")
If you explain better your situation i'm sure we'll find reasonable
solution for your filtering needs ;-)
>Bhasker.
>
>
>
Georgi Alexandrov.
>__________________________________________________
>Do You Yahoo!?
>Tired of spam? Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com
>
>
>
>
next prev parent reply other threads:[~2005-01-05 17:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-04 22:35 input filter Bhasker Allam
2005-01-05 15:48 ` Jason Opperisano
2005-01-05 17:06 ` Sky
2005-01-05 17:17 ` Georgi Alexandrov [this message]
2005-01-05 22:30 ` Bhasker Allam
2005-01-06 16:08 ` Jason Opperisano
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=41DC212C.4050106@hotpop.com \
--to=tehlists@hotpop.com \
--cc=allambhasker@yahoo.com \
--cc=netfilter@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.