Re: [squid-users] DSTDOMAIN Wildcards and Multiple http_port

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 04 Jul 2012 20:54:27 +1200

On 4/07/2012 8:37 p.m., Edmonds Namasenda wrote:
> Hello Team,
>
> Please bare with me if this was resolved before, but I am asking out
> of curiosity and need to test it soon
> What is the difference and implications of the following as dstdomain entries?
>
> # Assuming namasenda.com is a registered domain, and the outcome is
> controlling any domain with the word "namasenda" like
> hatenamasenda.com or .net
> a) .\namasenda\.
> b) .namasenda.
> c) .namasenda.com
> d) .\namasenda\.com
>
> Is a) & b) correct, anyway?

No they are not. Neither is (d).

(c) is correct dstdomain syntax but the "wildcard" is label-based, not
character-based.

.namasenda.com will match namasenda.com, www.namasenda.com,
www2.namasenda.com, other.namasenda.com
but not: anamasenda.com or hatenamasenda.com or anything else with a
different 2nd-tier label than "namasenda".

>
> I want one squid instance to listen on ports 80, 8080, & 3128
> Do I just do "http_port 3128 8080 80 transparent" work?

No, one line per http_port entry.

Amos
Received on Wed Jul 04 2012 - 08:54:37 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 04 2012 - 12:00:02 MDT