From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: Netfilter+IPsec patches Date: Sat, 21 Aug 2004 17:30:58 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <41276AB2.4030505@trash.net> References: <20040526033537.GH4402@samad.com.au> <40B53CCE.40704@trash.net> <20040527044613.GC24464@samad.com.au> <20040818024025.GC21419@ns.snowman.net> <20040818024852.GD21419@ns.snowman.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Netfilter Development Mailinglist Return-path: To: Stephen Frost In-Reply-To: <20040818024852.GD21419@ns.snowman.net> Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org Stephen Frost wrote: >* Stephen Frost (sfrost@snowman.net) wrote: > > >>I've got a bunch of network cards in my gateway, in this example we're >>concerned w/ 3 of them- two connections to the internet, one internal. >>For this to work I have to have source-based routing working (which it >>used to, back when I was using 2.4). It appears to still work fine for >>connections which are *not* NAT'd. For connections which are NAT'd it >>goes like this: >> >> > >Alright, so, tried something funny- If I add a source-route rule for >the *internal* address of the machine then the source routing works (but, >unfortunately, this breaks things since that machine needs to be able to >accept connections from both internet connections). > >I'm guessing this is done because of the packets are going through the >stack twice, but only going through the routing code once, and that's >happening prior to the NAT'ing? > >Please note, these packets aren't IPSEC'd and don't have anything to do >w/ IPSEC stuff. I'm doing some other IPSEC stuff on one of the >connections at the moment, but that's all working fine (it's on >internet1, so that may help...). > > It looks like it has something to do with the ipsec patches rerouting in POSTROUTING after NAT. Please send your exact routes and rules, I can't figure out the exact problem. Regards Patrick