ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: cornet <cornet@altlinux.ru>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Re: [mdk-re] дноранговая сеть win98 - 2 Учёт траффика
Date: Tue Mar 19 16:26:08 2002
Message-ID: <3C973C66.CA8C1D65@altlinux.ru> (raw)
In-Reply-To: <18113174333.20020318153932@inbox.ru>

Sergey Sokolov wrote:
> 
> Добрый день!
> 
> Следующий вопрос. Вроде сеть работает, в и-нет через прокси ходить можно. Но трафик
> платный после определённого лимита, хотелось бы получать
> предупреждение о том, что лимит приближается, чтобы умерить аппетиты.
> Можно ли это сделать?
> В win  я просто подвесил программку, которая мониторит трафик и
> показывает предупреждение при наступлении голодных времён. Хочу такое
> же в Linux. :)) Как?

Скорее всего у Вас в правилах фаерволла есть общий INPUT, разбейте его по интерфейсам, е если например у Вас инет сидит на eth0 и входной трафик платный, то INPUT этого интерфейса покажет полную сумму
трафика от начала существования цепочки. Зная имя цепочки не сложно сделать скрипт на sh который будет выгребать из строки отклика iptables число байтов, сравнивать с порогом и в случае если разница с
порогом меньше установленной величины слать письмо админу. Скрипт сажается на cron :-)
Все.

-- 
Власенко Олег.
Отдел технической поддержки ALT Linux Team.
mailto:cornet@altlinux.ru



  parent reply	other threads:[~2002-03-19 16:26 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-18 15:40 Sergey Sokolov
2002-03-19 16:02 ` Sergey Sokolov
2002-03-19 16:26 ` cornet [this message]
2002-03-19 17:45   ` [mdk-re] Re: [mdk-re] " Sergey Sokolov
2002-03-19 17:50     ` cornet
2002-03-19 18:10     ` [mdk-re] Re: [mdk-re] Re: [mdk-re] " Artem Pastuchov
2002-03-20  8:54       ` Sergey Sokolov
2002-03-20 11:18         ` [mdk-re] секьюрити в офисе (was: дноранговая сеть win98 - 2 Учёт траффика) Michael Shigorin
2002-03-20 11:37         ` [mdk-re] Re: дноранговая сеть win98 - 2 Учёт траффика Artem K. Jouravsky
2002-03-20  6:25     ` [mdk-re] Re: [mdk-re] Re: [mdk-re] " Alexey Morozov
2002-03-20  8:54       ` [mdk-re] Re[2]: " Sergey Sokolov
2002-03-20  9:06         ` Alexey Morozov
2002-03-20  9:22           ` [mdk-re] Re[2]: " Sergey Sokolov
2002-03-20  9:43             ` Alexey Morozov
2002-03-20 10:50               ` [mdk-re] Re[2]: " Sergey Sokolov
2002-03-20 11:47                 ` [mdk-re] " Michael Shigorin
2002-03-20 12:23                 ` [mdk-re] Re[2]: [mdk-re] " Alexey Morozov
2002-03-20 11:13             ` [mdk-re] Re[2]: [mdk-re] Re[2]: [mdk-re] Re: [mdk-re] " AVL
2002-03-20 11:58               ` [mdk-re] Re[2]: " Sergey Sokolov
2002-03-20 13:10                 ` [mdk-re] " Artem K. Jouravsky
2002-03-20 16:19                   ` [mdk-re] " Sergey Sokolov
2002-03-20 16:46                     ` Artem K. Jouravsky
2002-03-20 13:51                 ` [mdk-re] Re[2]: [mdk-re] Re[2]: [mdk-re] Re[2]: [mdk-re] Re: [mdk-re] Re: [mdk-re] " AVL
2002-03-20 15:58                   ` [mdk-re] Re: [JT] easy " Vyt
2002-03-20 16:51                     ` AVL
2002-03-20 16:19                   ` [mdk-re] Re[2]: [mdk-re] сеть win98 - 2 " Sergey Sokolov
2002-03-20 16:39                     ` [mdk-re] " Artem Pastuchov
2002-03-21 10:02                 ` [mdk-re] Re: дноранговая " Michael Shigorin
2002-03-21 12:18                   ` [mdk-re] Re: [mdk-re] JT " Sergey Sokolov
2002-03-20 14:36         ` [mdk-re] Re[2]: [mdk-re] Re: [mdk-re] Re: [mdk-re] ÄÎÏÒÁÎÇÏ×ÁÑ ÓÅÔØ win98 - 2 õÞ£Ô ÔÒÁÆÆÉËÁ îÏ×ÏÍÌÉÎÓËÉÊ éÇÏÒØ

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=3C973C66.CA8C1D65@altlinux.ru \
    --to=cornet@altlinux.ru \
    --cc=mandrake-russian@altlinux.ru \
    /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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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