From: Amin Azez Subject: Re: snat bridge routes reply packets Date: Tue, 04 Oct 2005 11:58:51 +0100 Message-ID: <4342606B.3020508@ufomechanic.net> References: <433BA8F6.7000606@ufomechanic.net> <433BDBD7.6030609@ufomechanic.net> <20214.217.166.60.19.1127998151.squirrel@ma.rtij.nl> <433BE841.2090203@ufomechanic.net> <41060.217.166.60.19.1128007213.squirrel@ma.rtij.nl> <433CCCD2.9030504@rtij.nl> <43410C8C.7080500@ufomechanic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org, Martijn Lievaart Return-path: To: Henrik Nordstrom 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 Henrik Nordstrom wrote: > On Mon, 3 Oct 2005, Amin Azez wrote: > >> Yes. And having saved the mac address (and physdev) it will use the >> bridge output functions instead of the ip route functions. > > > Saving the MAC should be sufficient. The implicit DNAT of return traffic > in SNAT:ed connections is run in PREROUTE and should be before the > bridge forwarding table.. Thanks for this tip. I've been working through the conntrack and natting code again looking for the most judicious point to apply this. There is a wiki up with my findings I'll announce in another post. Sam