ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "\"Дворников М.В.\"" <m_dvor@soc.adm.yar.ru>
To: "Акулов Захар" <hozzzar@mail.ru>,
	"ALT Linux sysadmin discuss" <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] квотирование трафика в squid
Date: Fri, 02 Mar 2007 10:28:25 +0300
Message-ID: <45E7D219.10208@soc.adm.yar.ru> (raw)
In-Reply-To: <E1HN1qk-0003jW-00.hozzzar-mail-ru@f55.mail.ru>

Акулов Захар пишет:
>> Взять lightsquid, порезать его на кусочки и переделать под свои нужды.
>> Тогда можно на каждый ip свой лимит устанавливать.
>>
> 
> Интересно! А где почитать можно?
> 

В /etc/squid/squid.conf прописываем /etc/squid/разрешены.acl

Создаем таблицу конфигурации:
    ip | лимит
Парсим лог squid - access.log и записываем в другую таблицу:
    ip | скачал.
Если ip не превысил лимит, то записываем в /etc/squid/разрешены.acl
-- 
С уважением, Дворников Михаил.


      reply	other threads:[~2007-03-02  7:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-01 11:03 Serge
2007-03-01 11:20 ` Шенцев Алексей Владимирович
2007-03-01 12:24 ` Акулов Захар
2007-03-01 12:38   ` Dmitriy L. Kruglikov
2007-03-01 12:52     ` "Дворников М.В."
2007-03-02  7:06       ` Акулов Захар
2007-03-02  7:28         ` "Дворников М.В." [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45E7D219.10208@soc.adm.yar.ru \
    --to=m_dvor@soc.adm.yar.ru \
    --cc=hozzzar@mail.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git