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@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/