ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Alexey V. Novikov" <shader@yandex.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] Снова про htb (теперь и про cbq)
Date: Fri, 02 Dec 2005 14:54:34 +0300
Message-ID: <439035FA.30209@yandex.ru> (raw)
In-Reply-To: <op.s05ly20eglg102@post.cnt.ru>

02.12.2005 14:24, Владимир Гусев пишет:
>> Меня смущает RULE, похоже что :25 это исходящий порт, тогда это  
>> неправильно.
>> Может его записать вот так
>> RULE=,:25
>> Если я правильно разобрался в скрипте cbq, то должно прокатить.
>> На входящий трафик повлиять не должно.
> 
> 
> Мда.. действительно, пересмотрел и понял, что скорее всего неверно..
> Да, правильно будет RULE=,:25 или ,192.168.1.0/24:25
> 
> Сработает ли такой вариант, если я буду вместо глобального ,:25 
> указывать  несколько конкретных IP?
> 
> RULE=,192.168.1.15:25
> RULE=,192.168.1.22:25
> RULE=,192.168.1.45:25
 >
 > указав тем самым самых "злостных нарушителей"  ?  В руководствах вроде
 > написано, что можно, причем правила будут действовать одновременно..

Ну вот опять, теперь у Вы указали адрес и порт назначения,
в то время как адрес должен быть исходящий, а порт назначения.
Впрочем, в случае nat или masq на этом этапе исходящий адрес -
это адрес Вашего шлюза, поэтому не сработает.
Оставьте только один порт, на остальных это сильно не скажется.
А RULE можно дествительно можно указывать несколько,
только вот действовать они будут не совсем одновременно,
т.к. на каждое RULE будет вызываться
tc filter add dev $DEVICE parent 1:0 protocol ip \
     prio $PRIO_RULE u32 $u32_s $u32_d classid 1:$CLASS

P.S.: Все-таки еще раз перечитайте LARTC, многое
станет несколько понятнее.

-- 
WBR, Alexey V. Novikov


  reply	other threads:[~2005-12-02 11:54 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-30 11:22 [Comm] Снова про htb Владимир Гусев
2005-11-30 12:22 ` Alexey V. Novikov
2005-11-30 13:13   ` Владимир Гусев
2005-11-30 13:21     ` Alexey V. Novikov
2005-11-30 14:25       ` [Comm] Снова про htb (теперь и про cbq) Владимир Гусев
2005-12-01  5:48         ` Alexey V. Novikov
2005-12-01 10:10           ` Владимир Гусев
2005-12-02  7:42           ` Владимир Гусев
2005-12-02  9:24             ` Alexey V. Novikov
2005-12-02 10:20               ` Владимир Гусев
2005-12-02 10:43                 ` Alexey V. Novikov
2005-12-02 11:24                   ` Владимир Гусев
2005-12-02 11:54                     ` Alexey V. Novikov [this message]
2005-12-02 13:40                       ` Владимир Гусев
2005-11-30 15:00 ` [Comm] Снова про htb sergey ivanov
2005-11-30 20:50   ` [Comm] " Michael Shigorin
2005-12-02 16:14 ` [Comm] " Sergey Ivanov
2005-12-02 19:42   ` [Comm] " Michael Shigorin
2005-12-02 21:00     ` Sergey Ivanov
2005-12-03 16:32   ` [Comm] " Владимир Гусев
2005-12-03  1:00 ` Aleksey Avdeev

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=439035FA.30209@yandex.ru \
    --to=shader@yandex.ru \
    --cc=community@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 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