From: Tim Haak Date: Wed, 24 Jan 2007 11:17:15 +0000 Subject: Re: [LARTC] routing patches seem to break output nat Message-Id: <45B7403B.2050807@haak.co.uk> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0110136096==" List-Id: References: <45B4A185.4080306@haak.co.uk> In-Reply-To: <45B4A185.4080306@haak.co.uk> To: lartc@vger.kernel.org This is a multi-part message in MIME format. --===============0110136096== Content-Type: multipart/alternative; boundary="------------000403030300010200000601" This is a multi-part message in MIME format. --------------000403030300010200000601 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi thanks for the quick response that seemed to work :) Tim Haak email: tim@haak.co.uk cel: 0837787100 The executioner is, I hear, very expert, and my neck is very slender. -- Anne Boleyn Julian Anastasov wrote: > Hello, > > On Tue, 23 Jan 2007, Tim Haak wrote: > > >> We have applied the routing patches from >> http://www.ssi.bg/%7Eja/#routes. To 2.6.15 this seems to have broken our >> output natting. Has anyone else experienced this or any advice on how to >> fix. Is this working on the newer kernel i.e. 2.6.19 ? Any help would be >> appreciated. >> > > Month ago Bart Duchesne found a problem with the > routes patch for 2.6 where reply packet for -j DNAT connections initiated > in OUTPUT are dropped in pre-routing. I now updated the patches and if you > have the same problem you can try the new diffs from today, eg. > > http://www.ssi.bg/~ja/routes-2.6.19-13.diff > > The fix for old patches is to remove the following extra check > (2 lines from net/ipv4/route.c) which obviously aborts ip_route_input() > with EINVAL for RTN_LOCAL when replies from remote host are destined to > our local IP: > > + if (lsrc && res.type != RTN_UNICAST && res.type != RTN_NAT) > + goto e_inval; > > Regards > > -- > Julian Anastasov > > --------------000403030300010200000601 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi

thanks for the quick response that seemed to work :)
Tim Haak

email: tim@haak.co.uk
cel:   0837787100

The executioner is, I hear, very expert, and my neck is very slender.
		-- Anne Boleyn


Julian Anastasov wrote:
	Hello,

On Tue, 23 Jan 2007, Tim Haak wrote:

  
We have applied the routing patches from 
http://www.ssi.bg/%7Eja/#routes. To 2.6.15 this seems to have broken our 
output natting. Has anyone else experienced this or any advice on how to 
fix. Is this working on the newer kernel i.e. 2.6.19 ? Any help would be 
appreciated.
    

	Month ago Bart Duchesne found a problem with the
routes patch for 2.6 where reply packet for -j DNAT connections initiated
in OUTPUT are dropped in pre-routing. I now updated the patches and if you 
have the same problem you can try the new diffs from today, eg. 

http://www.ssi.bg/~ja/routes-2.6.19-13.diff

	The fix for old patches is to remove the following extra check
(2 lines from net/ipv4/route.c) which obviously aborts ip_route_input()
with EINVAL for RTN_LOCAL when replies from remote host are destined to
our local IP:

+       if (lsrc && res.type != RTN_UNICAST && res.type != RTN_NAT)
+               goto e_inval;

Regards

--
Julian Anastasov <ja@ssi.bg>

  
--------------000403030300010200000601-- --===============0110136096== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============0110136096==--