From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinay Reddy Subject: reverse NATing Date: Fri, 18 Mar 2005 13:07:33 +0530 Message-ID: <537f59d10503172337941a6a4@mail.gmail.com> Reply-To: Vinay Reddy Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: netfilter-devel@lists.netfilter.org 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 Hi, I would like to know where exactly reverse mapping(packets coming from outside to the internal network) is done in the case of SNAT? From the netfilter documentation, it seems to be done in the POST_ROUTING hook. Is it true? Logically I would expect the packet to be reverse mapped in the pre-routing state itself. Why would one want to reverse map it in post routing? I am sure I am missing something. Could anyone please enlighten me? Any help would be appreciated. Regards, Vinay