Re: IP forwarding?
On Wed, Mar 30, 2005 at 10:07:47PM +0800, Jason Lim wrote:
> I cannot do this with DNS records because some of the visitors use hardcoded
> IPs rather than domains or hostnames (yes, bad design, but too late to
> change it now).
>
> The question i have tho... for the servers at 5.6.7.[1-32], if a client
> computer visits the corresponding IP at 1.2.3.[1-32], it would show only
> 5.6.7.[1-32] and not the actual client computer/website visitor, right?
So maybe solution I found some time ago (but never needed, so haven't
tested yet):
ip route add nat 1.2.3.1/27 via 5.6.7.1
ip rule add prio 320 from 5.6.7.1/27 nat 1.2.3.1
from /usr/share/doc/iproute/ip-cref.dvi page 50.
Regards,
Robert Tasarz
Reply to: