From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: return flow NAT table on POSTROUTING Date: Mon, 15 May 2006 20:44:00 +0200 Message-ID: <4468CBF0.2080101@trash.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: Amin Azez In-Reply-To: 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 Amin Azez wrote: > I've observed on kernel 2.6.11.7 that return flows for SNAT'd > connections do not pass through the NAT chain in the POSTROUTING table. > > They do however pass through the MANGLE chain in the POSTROUTING table. > > Is this to be expected? > > (Of course the original flow did pass through the NAT chain which is how > the SNAT occurred). Return traffic never goes through the NAT table, its too late to change the mappings once the connection has been established.