Subject: Re: ip aliases
To: Shadi Abou-Zahra <e9426418@student.tuwien.ac.at>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-help
Date: 02/05/2000 10:58:34
On Sat, 5 Feb 2000, Shadi Abou-Zahra wrote:

> hi all!
>   to protect a small private LAN i placed a netbsd machine up front as a
> router and configured ipnat and ipf. to allow the bimappings to function
> properly i went ahead and aliased the router with all ips of the LAN.
> ipnat handles this without any problems.
>   now i have a stupid problem. i browse to our.webserver.com which is
> translated by the dns server outside to 123.123.123.321 but on the packtes
> way out of the router the router recognizes the ip as an alias for itself
> and tries to connect to itself 123.123.123.123.

How about redirect all incoming port 80 traffic to the webserver?

rdr if0 0/0 port 80 -> internal_webserver_ip port 80 tcp


>   is there a way to force the router to handle ips without me setting them
> as aliases? or a different way to make it act dumb and not recognize the
> aliases? or maybe bypass this by using some nat rule i don't know about on
> the internal interface?