[mdk-re] Re: [JT] SQUID

Peter V. Saveliev =?iso-8859-1?q?peet_=CE=C1_infosite=2Eru?=
Вт Окт 9 12:41:13 MSD 2001


Hello, "Volkov Serge" <vserge на menatepspb.msk.ru>!
On Tue, 9 Oct 2001 11:43:56 +0400 you wrote:

<skip>
> Надо сделать прокси на squid  с авторизацией по логину и паролю, затем
> необходимо задавать ограничение выкачиваемых пользователем данных и при
> превышении лимита запрещать доступ пользователя в интернет.
<skip>

Смотри на тему:

#       acl aclname proxy_auth username ...
#       acl aclname proxy_auth_regex [-i] pattern ...
#         # list of valid usernames
#         # use REQUIRED to accept any valid username.
#         #
#         # NOTE: when a Proxy-Authentication header is sent but it is not
#         # needed during ACL checking the username is NOT logged
#         # in access.log.
#         #
#         # NOTE: proxy_auth requires a EXTERNAL authentication program
#         # to check username/password combinations (see
#         # authenticate_program).
#         #
#         # WARNING: proxy_auth can't be used in a transparent proxy. It
#         # collides with any authentication done by origin servers. It may
#         # seem like it works at first, but it doesn't.

Про ограничение закачки:

# DELAY POOL PARAMETERS (all require DELAY_POOLS compilation option)
# -----------------------------------------------------------------------------
 
#  TAG: delay_pools
#       This represents the number of delay pools to be used.  For example,
#       if you have one class 2 delay pool and one class 3 delays pool, you
#       have a total of 2 delay pools.
#
#       To enable this option, you must use --enable-delay-pools with the
#       configure script.
#
#Default:
# delay_pools 0

И далее по тексту - все расписано, лучше не придумаешь.
Удачи.
Петр.




Подробная информация о списке рассылки community