Страница 1 из 1
Squid и reply_body_max_size
Добавлено: 2008-02-22 18:45:52
InventoR
Добрый всем день. Народ, чот не получаеться зарезать обьем максимально допустимого размера для скавивания файла.
делаб так:
Код: Выделить всё
acl client1 src 192.168.0.1
acl client2 src 192.168.0.3
acl client3 src 192.168.0.3
Код: Выделить всё
reply_body_max_size 0 allow client1
reply_body_max_size 5388608 allow all.
Но получаеться такая штука, что вот это ограничение: 5388608. действует и на client1.
кто разбирался с такой штукой, подскажите плиз.
а то звери наглеют и качают все что не попадеться.
Re: Squid и reply_body_max_size
Добавлено: 2008-02-22 19:14:10
Alex Keda
а ты уверен что это не общая опция?
Re: Squid и reply_body_max_size
Добавлено: 2008-02-22 22:45:28
InventoR
Код: Выделить всё
# TAG: reply_body_max_size bytes allow|deny acl acl...
# This option specifies the maximum size of a reply body in bytes.
# It can be used to prevent users from downloading very large files,
# such as MP3's and movies. When the reply headers are received,
# the reply_body_max_size lines are processed, and the first line with
# a result of "allow" is used as the maximum body size for this reply.
# This size is checked twice. First when we get the reply headers,
# we check the content-length value. If the content length value exists
# and is larger than the allowed size, the request is denied and the
# user receives an error message that says "the request or reply
# is too large." If there is no content-length, and the reply
# size exceeds this limit, the client's connection is just closed
# and they will receive a partial reply.
#
# WARNING: downstream caches probably can not detect a partial reply
# if there is no content-length header, so they will cache
# partial responses and give them out as hits. You should NOT
# use this option if you have downstream caches.
#
# If you set this parameter to zero (the default), there will be
# no limit imposed.
#
#Default:
# reply_body_max_size 0 allow all
если правильно понял
Re: Squid и reply_body_max_size
Добавлено: 2008-02-24 19:04:41
InventoR
не знаю почему, и может я все таки что-то сделал не так:
не если перечислять пользователей через пробел
reply_body_max_size 0 allow client1 client2 client3
то работать ничего не хочет.
а вот если сделать
reply_body_max_size 0 allow client1
reply_body_max_size 345345 allow client2