[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: squid



Greetings...

Friday, March 28, 2003, 14:50:44, Ilya S. Sapytsky <sova@csd.uniyar.ac.ru> wrote:


ISS> On Fri, Mar 28, 2003 at 02:14:49PM +0400, Nugzar Nebieridze wrote:

ISS> А можно ли такое сделать для каждого пользователя ncsa_auth
ISS> в отдельности? чтобы одни могли качать мп3, а другие нет?

# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#
#
acl daemon src 172.24.13.13/255.255.255.255
acl sly src 172.24.13.16/255.255.255.255
acl papa src 172.24.13.82/255.255.255.255
acl mama src 172.24.13.81/255.255.255.255
acl chief src 172.24.13.199/255.255.255.255
acl if_lan src 172.24.13.0/255.255.255.0

acl super_users proxy_auth sly
acl power_users proxy_auth mmachine victorr evgeny gena
acl zakon_users proxy_auth chapor
acl all_users proxy_auth REQUIRED

acl in_very_hard_time time MTWHF 10:00-18:00
acl in_hard_time time MTWHF 9:00-22:00

acl nw_servlet urlpath_regex -i /servlet/
acl zakon_download url_regex -i ^http://pluto\.bank\.gov\.ua/hosting/zakon/
acl file_download urlpath_regex -i \.exe$ \.pdf$ \.zip$ \.rar$ \.arj$ \.mp\w*$ \
.wm\w*$ \.wav$ \.avi$ \.qt$ \.mov$ \.mid\w*$

http_access allow localhost
http_access allow daemon
http_access allow sly
http_access allow papa
http_access allow mama
http_access allow chief

http_access allow all_users if_lan nw_servlet

http_access allow super_users if_lan

http_access allow power_users if_lan !in_very_hard_time
http_access allow power_users if_lan in_very_hard_time !file_download

http_access allow zakon_users if_lan !in_very_hard_time
http_access allow zakon_users if_lan in_very_hard_time !file_download

http_access allow all_users if_lan !in_hard_time
http_access allow all_users if_lan in_hard_time !file_download

http_access deny all

-- 
Regards...

 +----------------------------------------------
 | Oles' Stovbenko aka $LY Lord of GloomDaemons
 +----------------------------------------------
 | Registered Linux User # : 232886
 | ICQ UIN                 : 27308195
 | NIC-Handle              : OS11-UANIC



Reply to: