IP Alias + Translation ..

IP Alias + Translation ..

Post by ry.. » Mon, 11 Mar 2002 14:06:02



I've been trying to translate an external ip (242.x.x.43) to an
internal ip (10.1.1.10). I added the external ip (242.x.x.43) to my ip
aliases file, but when I try to ping it from the outside nothing comes
up. I haven't linked to 10.1.1.10, but it still should ping to the
machine it's aliased to.

How do I set up a secondary ip to my external card and have the
secondary ip translated to an internal ip, vise versa? I'm using 2.4.x
and iptables. Thanks

Ryan

Please e-mail me!

 
 
 

IP Alias + Translation ..

Post by ry.. » Thu, 14 Mar 2002 05:26:18


Anyone?

> I've been trying to translate an external ip (242.x.x.43) to an
> internal ip (10.1.1.10). I added the external ip (242.x.x.43) to my ip
> aliases file, but when I try to ping it from the outside nothing comes
> up. I haven't linked to 10.1.1.10, but it still should ping to the
> machine it's aliased to.

> How do I set up a secondary ip to my external card and have the
> secondary ip translated to an internal ip, vise versa? I'm using 2.4.x
> and iptables. Thanks

> Ryan

> Please e-mail me!


 
 
 

IP Alias + Translation ..

Post by David K. Mean » Thu, 14 Mar 2002 06:44:18



> I've been trying to translate an external ip (242.x.x.43) to an internal
> ip (10.1.1.10). I added the external ip (242.x.x.43) to my ip aliases
> file, but when I try to ping it from the outside nothing comes up. I
> haven't linked to 10.1.1.10, but it still should ping to the machine
> it's aliased to.

> How do I set up a secondary ip to my external card and have the
> secondary ip translated to an internal ip, vise versa? I'm using 2.4.x
> and iptables. Thanks

Sorry.  I've been busy.

I think that another tack would work better.  The usual way that
one translates between an external connection and in internal
Private Network is to use MASQ as a target in the `forward' list
of iptables.  I recommend that you read about this, and try to
set up your system that  way.  Attempting to do this by using
the IP alias feature will just cause you to get wound around the
axle.