Networking Forums

Networking Forums > Computer Networking > Linux Networking > Where does netfilter nat reverse mangling take place?

Reply
Thread Tools Display Modes

Where does netfilter nat reverse mangling take place?

 
 
André Hänsel
Guest
Posts: n/a

 
      12-02-2007, 10:24 PM
Hi,

when I do SNAT, this is done in nat/POSTROUTING. But where will the
reply packet be reverse-mangled?

Regards, André
 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      12-02-2007, 10:39 PM
Hello,

André Hänsel a écrit :
>
> when I do SNAT, this is done in nat/POSTROUTING. But where will the
> reply packet be reverse-mangled?


In the NF_IP_PRE_ROUTING Netfilter hook at the same place as where the
nat/PREROUTING chain is called, after mangle/PREROUTING and before the
input routing decision. At least for an external connection ; things are
less clear when the connection is local to the host through the loopback
interface.
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
netfilter & SIP Miss Terre Linux Networking 11 09-30-2007 10:53 AM
Problem with Netfilter Prafulla T Linux Networking 0 12-30-2006 03:42 AM
Netfilter question g68 Linux Networking 2 10-15-2006 01:31 PM
NetFilter/IPTables Learner Linux Networking 0 01-14-2004 02:23 PM
using netfilter hooks in LKM's threadhead Linux Networking 0 08-15-2003 06:05 PM



1 2 3 4 5 6 7 8 9 10 11