Re: Virtual IP/DNS test results

2004-11-19 Thread Chuck Swiger
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
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Virtual IP/DNS test results

2004-11-19 Thread Gerard Samuel
Im trying to setup virtual IPs/DNS/Apache, and it seems to be
working within the LAN so far.
Box 1:  Firewall/Router/DNS/DHCP Server
Box 2:  Virtual IPs
Box 3:  DHCP client.  This is where Im getting an oddity (see below).
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,
I get this ->
$ ping -c1 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
36 bytes from gatekeeper.trini0.org (192.168.0.1): Redirect Host(New 
addr: 192.168.1.1)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks  Src  Dst
4  5  00 0054 03ae   0   40  01 f499 192.168.0.16  192.168.1.1

64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=0.807 ms
--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.807/0.807/0.807/0.000 ms
Is this indicative that there is a problem with the setup???
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"