Имя пользователя:
Пароль:
 

Показать сообщение отдельно

Аватара для Guest 80 247 100

Старожил


Сообщения: 466
Благодарности: 5

Профиль | Отправить PM | Цитировать


я тоже
Цитата:
в этом деле не специалист
но вот посмотрите, может нечто подобное натолкнёт на что нить:
[pre]
#       A pair of delay parameters is written restore/maximum, where restore is
#       the number of bytes (not bits - modem and network speeds are usually
#       quoted in bits) per second placed into the bucket, and maximum is the
#       maximum number of bytes which can be in the bucket at any time.
#
#       For example, if delay pool number 1 is a class 2 delay pool as in the
#       above example, and is being used to strictly limit each host to 64kbps
#       (plus overheads), with no overall limit, the line is:
#delay_parameters 1 -1/-1 8000/8000
#
#       Note that the figure -1 is used to represent "unlimited".
#
#       And, if delay pool number 2 is a class 3 delay pool as in the above
#       example, and you want to limit it to a total of 256kbps (strict limit)
#       with each 8-bit network permitted 64kbps (strict limit) and each
#       individual host permitted 4800bps with a bucket maximum size of 64kb
#       to permit a decent web page to be downloaded at a decent speed
#       (if the network is not being limited due to overuse) but slow down
#       large downloads more significantly:
#
#delay_parameters 2 32000/32000 8000/8000 600/64000
#
#       There must be one delay_parameters line for each delay pool.
#  TAG: delay_initial_bucket_level      (percent, 0-100)
#       The initial bucket percentage is used to determine how much is put
#       in each bucket when squid starts, is reconfigured, or first notices
#       a host accessing it (in class 2 and class 3, individual hosts and
#       networks only have buckets associated with them once they have been
#       "seen" by squid).
[/pre] (c) cat squid.conf.default


Добавлено:

по второй проблемме
Цитата:
- например выкачал трафика метров на 10, доступ перекрывается..
надо поискать програмки по иннету, у меня работает скрипт на перле, написаный ещё моим предшественником, который переодически из cron запускается и анализирует логи squid и считает кто сколько накачал по IP , если выкачал больше чем следовало , то вытирается твой IP из файлика доступа...
(он не совсем правда достоверно считает, по этому серьёзно его использовать черевато... но обшая картина видна)

и повторюсь, много раз натыкался на програмульки/скрипты в иннете которые это делают!

Отправлено: 08:37, 26-03-2003 | #3