From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH 1/2] updates for [nf|ct]netlink and event API Date: Tue, 28 Jun 2005 05:56:19 +0200 Message-ID: <42C0CA63.6080305@trash.net> References: <42C03F2E.30706@eurodev.net> <42C07046.10101@trash.net> <42C0B2DF.8060907@eurodev.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Harald Welte , Netfilter Development Mailinglist Return-path: To: Pablo Neira In-Reply-To: <42C0B2DF.8060907@eurodev.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Pablo Neira wrote: > Patrick McHardy wrote: >> This doesn't work reliably, locally generated packets never enter >> PRE_ROUTING but can be DNATed. I think the hook should be supplied >> by the user. > > The macro HOOK2MANIP used is ip_nat_setup_info returns the same value > (maniptype) for NF_IP_PRE_ROUTING and NF_IP_LOCAL_IN, so the same > manipulation (DNAT) will be applied to such conntrack. Since we works > with conntracks, I don't mind where the packets came from, just want to > apply the NAT handling that the user has requested. You're right, I'm still not familiar with the new NAT code .. Regards Patrick