From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Date: Thu, 23 Sep 2004 04:17:10 +0000 Subject: Re: [LARTC] ip route nat problem Message-Id: <41524E46.6030108@trash.net> List-Id: References: <200409221134.36677.mharris@torque.net> In-Reply-To: <200409221134.36677.mharris@torque.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Michael Harris wrote: >When i try adding these rules: >ip route add default via X.X.X.1 dev eth0 table 200 >ip route add nat X.X.X.6 via Z.Z.Z.46 >ip rule add from Z.Z.Z.46 nat X.X.X.6 table 200 > >the second route causes this error: "RTNETLINK answers: File exists" >i have also tried changing the command to "append" rather than "add" the >route, but this has had no effect. > >i have also tried this: >ip route add default via X.X.X.1 dev eth0 table 200 >ip route append nat X.X.X.6 via Z.Z.Z.46 table 201 >ip rule add to X.X.X.6 table 201 >ip rule add from Z.Z.Z.46 nat X.X.X.6 table 200 >That seems to work at first, however "ip route get 209.167.89.6" >returns the following error: RTNETLINK answers: Invalid argument > >Any help would be greatly appreciated > > IP_ROUTE_NAT is broken on 2.6 and was removed in 2.6.9-rc1, you should switch to netfilter NAT. Apparently there is also a stateless NAT target floating around somewhere, although I've never seen it. Regards Patrick _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/