ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Alexey S. Kuznetsov" <buster@kuznetsov.org.ua>
To: community@lists.altlinux.org
Subject: [Comm] CBQ и исходящий трафик
Date: Sun, 23 Jul 2006 08:37:57 +0300
Message-ID: <op.tc4m9jq3lb0hgf@wolf> (raw)

Привет всем!
  Настраиваю CBQ...

cat /etc/sysconfig/cbq/cbq-015.2_14.in
DEVICE=eth1,10Mbit,1Mbit
RATE=22Kbit
WEIGHT=3Kbit
PRIO=5
RULE=,192.168.2.14

cat /etc/sysconfig/cbq/cbq-016.2_14.out
DEVICE=eth0,10Mbit,1Mbit
RATE=22Kbit
WEIGHT=3Kbit
PRIO=5
RULE=192.168.2.14,

Теоретически должно работать.
Практически работает только ограничение входящего трафика, а исходящий  
никак не ограничивается.
Топология сети простая: 2 интерфейса, первый - внутренний, второй - инет,  
смотрит в шлюз. Внутренние клиенты натятся.
После недолгих рассуждений я додумался, что когда пакет приходит в cbq и  
анализируется, там уже занатеный адрес, т.е. не внутреннего интерфейса, а  
уже внешнего и соотвественно не зажимается.
Решил всё делать через iptable и MARK. Ставлю в CBQ: MARK=2
В iptables: iptables -t mangle -I FORWARD -s 192.168.2.14 -j MARK  
--set-mark=2
ничё не получается. Уже во всех цепочках в mangle прописывал и входящие и  
исходящие пакеты, ничего не получается.
Как вы ограничиваете исходящий трафик?

-- 
Sincerely,
Alexey S. Kuznetsov
AK2351-RIPE


             reply	other threads:[~2006-07-23  5:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-23  5:37 Alexey S. Kuznetsov [this message]
2006-07-23  7:42 ` Sergiy Guminilovych

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=op.tc4m9jq3lb0hgf@wolf \
    --to=buster@kuznetsov.org.ua \
    --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