Hi,

I have problems setting up NAT with a 2.2.6 kernel. 
After reading everything I found in the docs and on dejanews (not much, 
though) I tried the following:

  ~# ip rule add from A.B.C.D nat A.B.C.E
  ~# ip route add nat A.B.C.E via A.B.C.D

A.B.C.D is within a subnet directly connected at eth0.
After this the NAT route shows up in table local:

  ~# ip route list table local | grep nat
  nat A.B.C.E via A.B.C.D  scope host 

If I try now to ping the NATed address, I get the following:

  ~# ping A.B.C.E
  PING A.B.C.E (A.B.C.E): 56 data bytes
  ping: sendto: Invalid argument
  ping: wrote A.B.C.E 64 chars, ret=-1
  ping: sendto: Invalid argument
  ping: wrote A.B.C.E 64 chars, ret=-1
  ping: sendto: Invalid argument
  ping: wrote A.B.C.E 64 chars, ret=-1


What did I miss? Any help is greatly appreciated.

Thank you,
Erik

-- 
| Erik Heinz, IKS GmbH Jena * [EMAIL PROTECTED] * privat: [EMAIL PROTECTED]  |
+---------------------------------------------------------------------------+
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to