From: Leonardo Rodrigues <leolistas@solutti.com.br>
To: Jorge Bastos <mysql.jorge@decimal.pt>
Cc: netfilter@vger.kernel.org
Subject: Re: How to do nat filtering in 1.4.3.2
Date: Wed, 22 Apr 2009 19:22:24 -0300 [thread overview]
Message-ID: <49EF98A0.2030505@solutti.com.br> (raw)
In-Reply-To: <3404.87.196.144.12.1240438707.squirrel@webmail.decimal.pt>
Jorge Bastos escreveu:
> PS:Already tested and works perfectly. I guess this should be the place i
> should used the rules to do nat filtering from the beginning, correct?
>
>
absolutely !!! -t filter is the place to filter. -t nat is the place
to do NAT-related stuff, and not filtering.
if you wanna filter packets coming TO your firewall machine, then
your rules should be in INPUT chain
if you wanna filter packets going out FROM your firewall machine,
then your rules should be in OUTPUT chain
if you wanna filter packets passing your firewall (ie, getting
routed), then your rules should be in FORWARD chain. Remember that
packets go and come, so depending the case, 2 rules are necessary to
fully accept a forwarded packet
--
Atenciosamente / Sincerily,
Leonardo Rodrigues
Solutti Tecnologia
http://www.solutti.com.br
Minha armadilha de SPAM, NÃO mandem email
gertrudes@solutti.com.br
My SPAMTRAP, do not email it
next prev parent reply other threads:[~2009-04-22 22:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-22 21:48 How to do nat filtering in 1.4.3.2 Jorge Bastos
2009-04-22 21:59 ` Leonardo Rodrigues
2009-04-22 22:18 ` Jorge Bastos
2009-04-22 22:22 ` Leonardo Rodrigues [this message]
2009-04-22 22:26 ` Jorge Bastos
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=49EF98A0.2030505@solutti.com.br \
--to=leolistas@solutti.com.br \
--cc=mysql.jorge@decimal.pt \
--cc=netfilter@vger.kernel.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.