Re: http_port

From: Duane Wessels <wessels@dont-contact.us>
Date: Thu, 16 Mar 2000 11:29:05 -0700

On Thu, 16 Mar 2000, Martin Brooks wrote:

> Firstly, apologies for the first partial post, damned keyboard shortcuts! :)
> --------------------------------------------
>
> Hi,
>
> I have a couple of questions about the fine-grained use of the http_port
> directive
>
> 1) If I have a machine with three NICs with IPs 10.0.0.1, 192.168.0.1 and
> 194.123.45.6 which all have hosts/DNS entries that point to "cache.foo.com"
> will the directive
>
> http_port cache.foo.com:3128
>
> bind it to all the NICs in the system?

no. just the first address returned for cache.foo.com.

>
> 2) In the same system as above, what would happen with this configuration
> is if I specified
>
> http_port 10.0.0.1:3128
> http_port cache.foo.com:8080
>
> Would it listen on both ports on the 10.0.0 network?

depends on the order that addresses are returned to
gethostbyname().

>
> 3) The corollary (kinda) of the above. If I say
>
> http_port 10.0.0.1:8080
> http_port 192.168.0.1 8081
> http_port 3128
>
> Which IPs and ports will Squid end up listening on?

10.0.0.1:8080
192.168.0.1:8081
0.0.0.0:3128

(the second is illegal syntax, I assume you mean a ':' instead of a space)
Received on Thu Mar 16 2000 - 11:33:56 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:52:16 MST