Re: [squid-users] help: squid logic

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 14 Nov 2005 15:24:37 +0100 (CET)

On Sat, 12 Nov 2005, Hendro Susanto wrote:

> hi,
>
> I've been using squid for almost 5 years now.
> it's working very well.
>
> however, i can't solve the squid configuration for:
>
> STAFF A
> STAFF B
>
> STAFF A = NO INTERNET 8.30-15.30, OTHER TIME 64Kbps
> STAFF B = NO INTERNET 8.30-15.30 BUT SOME SITES ARE ACCESSIBLE WITH
> 128Kbps, OTHER TIME 64Kbps WITH ALL SITES IS ACCESSIBLE.

Something like the following should work:

acl staff_A ...
acl staff_B ...
acl office_time time 08:30-15:30
acl allowed_sites dstdomain "/path/to/allowed_sites.txt"

delay pool 1 configured for 64Kbps
delay pool 2 configured for 128Kbps

# Restricted access during office hours
http_access allow staff_B allowed_sites
http_access deny office_time

# Unresticted access at other hours
http_access allow staff_A
http_access allow staff_B

# only 64 Kbps allowed outside office hours
delay_access 1 allow !office_hours

# within office hours 128Kbps
delay_access 2 allow office_hours

Regards
Henrik
Received on Mon Nov 14 2005 - 07:24:42 MST

This archive was generated by hypermail pre-2.1.9 : Thu Dec 01 2005 - 12:00:09 MST