ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Andrey V. Samopal" <coma@admin.dn.ua>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] ulogd + mysql
Date: Tue, 6 May 2008 08:09:15 +0300
Message-ID: <1808797973.20080506080915@admin.dn.ua> (raw)
In-Reply-To: <200805060841.30676@ruslandh>

Здравствуйте, Хихин.

Вы писали 6 мая 2008 г., 7:41:24:

> Здравствуйте Andrey V. Samopal
>   В сообщении от 6 мая 2008 Andrey V. Samopal написал(a):
>> Здравствуйте, Хихин.
>>
>> Вы писали 5 мая 2008 г., 21:38:02:
>> > Здравствуйте Andrey V. Samopal
>> >
>> >   В сообщении от 5 мая 2008 Andrey V. Samopal написал(a):
>> >> но проблема в том, что если просто суммировать байты по IP
>> >> SELECT INET_NTOA(ip_daddr), sum(ip_totlen) FROM ulog GROUP BY ip_daddr
>> >> у меня не сходятся цифры, сравнивая полученный результат с
>> >> обработанным сквидовым access.log
>> >
>> > Они вроде и теоретически не должны сходится
>>
>> Тогда почему большая разница в 2 раза
>> по access.log 50 М, по ulogd 126 М

> Мне трудно судить почему такая большая разница, но через iptables проходит
> весь трафик, а через squid только часть (например, не проходит почта). Но,
> возможен вариант, что вы не там вставили цепочку подсчёта трафика, и помимо
> трафика пользователей squid считается и трафик самого сервера.

У меня только одно правило в iptables
-A OUTPUT -p tcp -m tcp --sport 3128 -j ULOG --ulog-prefix "SQUID_OUT" --ulog-cprange 48 --ulog-qthreshold 50
Все остальное стандарт дефолтного конфига


-- 
С уважением,
 Andrey                          mailto:coma@admin.dn.ua





  reply	other threads:[~2008-05-06  5:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-05 11:19 Andrey V. Samopal
2008-05-05 11:23 ` Eugene Prokopiev
2008-05-05 12:26   ` Andrey V. Samopal
2008-05-05 18:38     ` Хихин Руслан
2008-05-06  4:05       ` Andrey V. Samopal
2008-05-06  4:41         ` Хихин Руслан
2008-05-06  5:09           ` Andrey V. Samopal [this message]
2008-05-06 17:20             ` Andrey V. Samopal

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=1808797973.20080506080915@admin.dn.ua \
    --to=coma@admin.dn.ua \
    --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