Date: Fri, 19 Nov 2004 14:06:13 -0500 From: Chuck Swiger <cswiger@mac.com> To: Gerard Samuel <fbsd-questions@trini0.org> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: Virtual IP/DNS test results Message-ID: <419E4425.2000803@mac.com> In-Reply-To: <419E3B26.8000101@trini0.org> References: <419E3B26.8000101@trini0.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Gerard Samuel wrote: > If I were to ping a hostname that is using a virtual IP address, > or if I ping a virtual IP address from just this one of the machines on > the LAN, [ ...you get an ICMP redirect... ] > Is this indicative that there is a problem with the setup??? No. What happened was you local client created an HTTP request to the public IP which the hostname in the URL resolved to. Your NAT box saw that this public IP was in fact being NAT'ed to a local host, and issued an ICMP redirect telling the client about the shorter route. If this didn't work right, your apache config probably doesn't mention the local IP in the virtualhost section or some such, but the HTTP result and/or the apache logs will give more info to track down any such details. You can also set up "split-horizon DNS" or perform similar tricks in /etc/hosts to convince machines on your LAN to lookup the www hostname as local IP rather than as public IP, which would remove the ICMP redirect from the situation entirely. -- -Chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?419E4425.2000803>