From: "Gáspár Lajos" <swifty@freemail.hu>
To: Gopinath <gopinath.u@gmail.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: Default deny rule
Date: Wed, 30 May 2007 12:25:07 +0200 [thread overview]
Message-ID: <465D5103.3000507@freemail.hu> (raw)
In-Reply-To: <d2af4f000705290744i4518ae7bu11b1fb7e2eb14a68@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1017 bytes --]
Gopinath írta:
> Thank your very much Lajos !!!!!!!!!!!!!!!
>
> It is working fine now after adding the line "-m conntrack --ctstate
> DNAT" in the ACCEPT statement of the FORWARD chain as you've said in
> previous mail.
>
> Could you please explain how it works after adding the line "-m
> conntrack --ctstate DNAT" in the ACCEPT stmt of FORWARD chain ? I'm
> very eager to know this :-)
>
Okay... :D
I have attached an image that shows the route of the packet.
In the PREROUTING nat table the destination address gets DNATed IF the
client wants to talk to the EXTERNAL address.
But if the INTERNAL address is used at a new connection then this rule
does not get hit !!! (No DNAT!!!)
In the FORWARD filter table you were accepting EVERY connection that has
an INTERNAL destination address.
If you use the conntrack module then ONLY the DNATed packets gets
accepted!!!
> Regards,
> Gopinath.U
>
>
> I have also upgraded my iptables to version 1.3.7
Good to hear... :D
Swifty
next prev parent reply other threads:[~2007-05-30 10:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-10 5:28 Default deny rule Gopinath
2007-05-11 10:09 ` Gáspár Lajos
2007-05-14 6:02 ` Gopinath
2007-05-14 12:33 ` Gáspár Lajos
[not found] ` <d2af4f000705150134r4d5bbf84r96d0f91aae9a725d@mail.gmail.com>
2007-05-21 16:03 ` Gáspár Lajos
2007-05-28 13:45 ` Gopinath
2007-05-29 13:04 ` Gáspár Lajos
2007-05-29 14:44 ` Gopinath
2007-05-30 10:25 ` Gáspár Lajos [this message]
2007-05-31 5:11 ` Gopinath
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=465D5103.3000507@freemail.hu \
--to=swifty@freemail.hu \
--cc=gopinath.u@gmail.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.