Re: [squid-users] dstdom_regex question

From: Chris Nighswonger <cnighswonger_at_foundations.edu>
Date: Mon, 12 Jan 2009 11:19:38 -0500

On Mon, Jan 12, 2009 at 11:00 AM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> Chris Nighswonger wrote:
>>
>> I'm using authentication and trying to allow unauthenticated access to
>> http://java.sun.com/update/1.6.0/map-1.6.0.xml and all associated
>> urls so Java will update transparently rather than prompting the user
>> for credentials. I have been trying to do this using dstdom_regex and
>> cannot seem to get things to work the way I imagine they should. I
>> have tried two ways.
>>
>> acl AuthorizedUsers proxy_auth REQUIRED
>> acl JavaUpdate dstdom_regex -i sun.*update
>> http_access allow JavaUpdate
>> http_access allow AuthorizedUsers
>>
>> and
>>
>> acl AuthorizedUsers proxy_auth REQUIRED
>> acl JavaUpdate1 dstdom_regex -i sun
>> acl JavaUpdate2 dstdom_regex -i update
>> http_access allow JavaUpdate1 JavaUpdate2
>> http_access allow AuthorizedUsers
>
> <snip>
>
>>
>> Am I going about this wrong or just missing something about dstdom_regex?
>
>
> ... by attempting to match a part of the path 'update' against a domain
> name...
>
>
> Try this:
>
> acl Sun dstdomain java.sun.com

I ended up makeing this line

acl Sun dstdomain .sun.com

because the server name changes from time to time it appears.

Otherwise it works great.

Thanks Amos and Tim.

Kind Regards,
Chris

-- 
Christopher Nighswonger
Faculty Member
Network & Systems Director
Foundations Bible College & Seminary
www.foundations.edu
www.fbcradio.org
Received on Mon Jan 12 2009 - 16:19:43 MST

This archive was generated by hypermail 2.2.0 : Mon Jan 12 2009 - 12:00:02 MST