NetFilter
[Top] [All Lists]

Re: Default deny rule

To: "Gáspár Lajos" <swifty@freemail.hu>
Subject: Re: Default deny rule
From: Gopinath <gopinath.u@gmail.com>
Date: Tue, 29 May 2007 20:14:44 +0530
Cc: netfilter@lists.netfilter.org
Delivered-to: sp-com-lists@consult.net
Delivered-to: netfilter-list1@securepoint.com
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lwR4XN5SGZY9vmnIi6cqSwfkeJsI569eFKaRQzuQPKlu38wkf48uQQobUDrfDnU1j0BG0XGzOtnAcafgscK2vao5Obt/Mu64IHlEIGR70jMroODliy0QuQeO0nDaPZQ4JsI8eqmmGgA7JUiQ3c56/EBtex3+OL+03xmq7gPXQyc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KlMU3pPiy+QzzgE7+2iBeV0RmEVfZl5Na9WGkMr83HXt6SGIEkPYXX3XKm7nXvCx/bkEr9zw27FyJHfXORQ6YhchSqpCPEWy/yBe0WaLKWr1xtKrLqBiL6yKP9JEa7Op8+soJhCJqd+4hoaanJ4PhOazyylHkLNWJK3VTEse608=
In-reply-to: <465C24E0.8010001@freemail.hu>
List-archive: </pipermail/netfilter>
List-help: <mailto:netfilter-request@lists.netfilter.org?subject=help>
List-id: General discussion and user questions <netfilter.lists.netfilter.org>
List-post: <mailto:netfilter@lists.netfilter.org>
List-subscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=subscribe>
List-unsubscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=unsubscribe>
References: <d2af4f000705092228x3746eb10u9b81264581a57e46@mail.gmail.com> <464440C4.7000605@freemail.hu> <d2af4f000705132302t3d8b2c8eo6158406d02af9f91@mail.gmail.com> <4648570D.4040308@freemail.hu> <d2af4f000705150134r4d5bbf84r96d0f91aae9a725d@mail.gmail.com> <4651C2EE.2080803@freemail.hu> <d2af4f000705280645j74a57571j65bb21ab0bfcee40@mail.gmail.com> <465C24E0.8010001@freemail.hu>
Sender: netfilter-bounces@lists.netfilter.org
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 :-)

Regards,
Gopinath.U


I have also upgraded my iptables to version 1.3.7

On 5/29/07, Gáspár Lajos <swifty@freemail.hu> wrote:
Hi Gopinath,
> Hi Lajos,
>
> Thanks for your suggestion.
>
> I had upgraded my OS  to fedora 6, and also enabled logging option for
> the DROP packets. Now the Default denying functionality is working
> fine. But this time I face another problem. ie., i have applied static
> NAT on my firewall. In my simulation setup i am able to connect the
> other end (INTERNAL) machine using the NAT IP assigned, from the
> EXTERNAL machine as well through the actual IP of the
> machine(INTERNAL). This spoil my purpose for NATTING. I don't know why
> this happen. I suspect that there could be some problem with my NAT
> module. Please suggest...
I think that this is not a NATing but a routing problem.
I do not know your current script but maybe there is an accept that
allows this state.
I would add the following option to the ACCEPT rule in the FORWARD chain:

-m conntrack --ctstate DNAT

>
> Is there any need to upgrade my kernel to add further support ?
>
I do not think so but it is good to have an up-to-date system.
> Regards,
> Gopinath. U

Swifty



<Prev in Thread] Current Thread [Next in Thread>