Map non-127.x.x.x address back to own machine?

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed Sep 14 15:25:00 UTC 2011


On Wed, Sep 14, 2011 at 12:54:28AM -0400, Amanda Yilmaz wrote:
> Is there a way to make an IP address outside the 127.x.x.x range (say, 192.168.56.101) map back to your own machine when accessed from your own machine, as if it were another alias for localhost? I'd like this to happen only on my own machine, and not interfere with anyone else's use of said IP address on the local network. This is for testing purposes only.
> 
> I've been poring over the documentation for route, arp, tun/tap, etc., but don't have a deep enough understanding of Linux networking to know where to begin.

/etc/hosts for things done by DNS name.

Otherwise, destination NAT using iptables is in order I think.

-- 
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list