Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] ip route nat problem
Date: Thu, 23 Sep 2004 04:17:10 +0000	[thread overview]
Message-ID: <41524E46.6030108@trash.net> (raw)
In-Reply-To: <200409221134.36677.mharris@torque.net>

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/

      reply	other threads:[~2004-09-23  4:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-22 15:34 [LARTC] ip route nat problem Michael Harris
2004-09-23  4:17 ` Patrick McHardy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41524E46.6030108@trash.net \
    --to=kaber@trash.net \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox