Re: [squid-users] priority rules in squid.conf

From: Leonardo Rodrigues <leolistas_at_solutti.com.br>
Date: Mon, 22 Nov 2010 10:25:49 -0200

Em 22/11/10 10:01, Riccardo Castellani escreveu:
> For precedence of evaluating rules, when I open my browser, what rule does
> Squid analyze ?
>
> I think rule 6, but how Squid knows if client have to use LDAP
> Authentication or to look at in the file 'onlyforip' to grant Internet
> access for IP Address ?
> I think Squid first has to look at the rules 9 and 10, so I think there is
> priority of rules which is not dependent from rules sequence ?!
>
> I'd like solve my doubt

     Rules are evaluated on the exact order you configure them in
squid.conf. There's no magic and no trick envolved .... if you want some
rule A to be evaluated before other rule B, simply put A before B on
squid.conf.

     If you want allow some IPs without authentication, simply put that
rule(s) before the ones that requires authentication.

     evaluation is linear, just order your rules logically to acchieve
what you need.

-- 
	Atenciosamente / Sincerily,
	Leonardo Rodrigues
	Solutti Tecnologia
	http://www.solutti.com.br
	Minha armadilha de SPAM, N�O mandem email
	gertrudes_at_solutti.com.br
	My SPAMTRAP, do not email it
Received on Mon Nov 22 2010 - 12:26:04 MST

This archive was generated by hypermail 2.2.0 : Mon Nov 22 2010 - 12:00:03 MST