From: Martin Josefsson Subject: Re: Patch for CONFIG_IP_NF_NAT_LOCAL in 2.6.11 ? Date: Thu, 10 Mar 2005 20:31:33 +0100 Message-ID: <1110483093.1100.9.camel@tux.rsn.bth.se> References: <019201c52592$e181a4b0$0a00a8c0@alexandre> <42307E2A.5060806@trash.net> <019f01c52595$dd3a56b0$0a00a8c0@alexandre> <42308509.4040902@trash.net> <01cd01c5259a$89ab8dc0$0a00a8c0@alexandre> <42308B4E.3030303@trash.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-riLJiZ+hbvsc1hirPlfV" Cc: Netfilter-devel To: Patrick McHardy In-Reply-To: <42308B4E.3030303@trash.net> 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 --=-riLJiZ+hbvsc1hirPlfV Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2005-03-10 at 19:00 +0100, Patrick McHardy wrote: > > but it doesn't work yet... > >=20 > > what I am doing wrong ? >=20 > Check if the rules are used and what happens on the network .. I belive the problem is in ip_route_output_slow() line 2070 in ipv4/ip_output.c in 2.6.11.2 make_route: if (LOOPBACK(fl.fl4_src) && !(dev_out->flags&IFF_LOOPBACK)) goto e_inval; It simply does not route packets with loopback addresses out via non loopback interfaces, and SNAT occurs at POSTROUTING... Not sure what a good solution could be, we certainly don't want to the possibility to send out packets with 127.0.0.1 as source (like some windows virus got the windows stack to do by synflooding a domain that later got changed into 127.0.0.1) --=20 /Martin --=-riLJiZ+hbvsc1hirPlfV Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBCMKCVWm2vlfa207ERAiTyAKCEb8KS/zTIMZgOoh8MZJsY3TaV1wCghxFL wuLXBs0Q1W2nihyG44bh16c= =A0Cr -----END PGP SIGNATURE----- --=-riLJiZ+hbvsc1hirPlfV--