anonymous@RULINUX.NET~# Last login: 2024-05-02 03:43:48
Регистрация Вход Новости | Разметка | Пользователи | Галерея | Форум | Статьи | Неподтвержденное | Трекер | Правила форума | F.A.Q. | Ссылки | Поиск
[#] [Добавить метку] [Редактировать]
Скрыть

Настроить приоритет трафика по портам...

Товарищи, может, кто подскажет...

Понадобилось мне на работе QoS настроить. Задача чрезвычайно проста: надо банально повысить приоритет ssh трафика, снизить ftp, ну и так далее - то есть раскидать приоритеты в зависимости от порта. Крайне долго читал доки и что-то делал, однако эффекта желаемого так и не добился. Может, подскажет кто, как это сделать просто и быстро?

На данный момент попробовал ставить cbq - набираю # /etc/init.d/cbq.init compile # /etc/init.d/cbq.init start

Вроде как все конфиги схавало, всё прекрасно, но работать тем не менее отказывается - очевидно, стоит лишь глянуть на тормоза в emacs по ssh при запущенном скачивании чего-либо. если что, выдают следующее:

<начало вывода> find: warning: you have specified the -maxdepth option after a non-option argument (, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument (, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.

/sbin/tc qdisc del dev eth0 root /sbin/tc qdisc add dev eth0 root handle 1 cbq bandwidth 100Mbit avpkt 1000 cell 8

/sbin/tc class add dev eth0 parent 1: classid 1:100 cbq bandwidth 100Mbit rate 100Mbit weight 10Mbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded /sbin/tc qdisc add dev eth0 parent 1:100 handle 100 tbf rate 100Mbit buffer 10Kb/8 limit 15Kb mtu 1500 /sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 10.0.11.0/24 match ip dport 22 0xffff classid 1:100

/sbin/tc class add dev eth0 parent 1: classid 1:101 cbq bandwidth 100Mbit rate 100Mbit weight 10Mbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded /sbin/tc qdisc add dev eth0 parent 1:101 handle 101 tbf rate 100Mbit buffer 10Kb/8 limit 15Kb mtu 1500 /sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 10.0.11.0/24 match ip dport 143 0xffff classid 1:101

/sbin/tc class add dev eth0 parent 1: classid 1:102 cbq bandwidth 100Mbit rate 100Mbit weight 10Mbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded /sbin/tc qdisc add dev eth0 parent 1:102 handle 102 tbf rate 100Mbit buffer 10Kb/8 limit 15Kb mtu 1500 /sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 10.0.11.0/24 match ip dport 25 0xffff classid 1:102

/sbin/tc class add dev eth0 parent 1: classid 1:103 cbq bandwidth 100Mbit rate 100Mbit weight 10Mbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded /sbin/tc qdisc add dev eth0 parent 1:103 handle 103 tbf rate 100Mbit buffer 10Kb/8 limit 15Kb mtu 1500 /sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 10.0.11.0/24 match ip dport 20 0xffff classid 1:103

/sbin/tc class add dev eth0 parent 1: classid 1:104 cbq bandwidth 100Mbit rate 100Mbit weight 10Mbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded /sbin/tc qdisc add dev eth0 parent 1:104 handle 104 tbf rate 100Mbit buffer 10Kb/8 limit 15Kb mtu 1500 /sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 10.0.11.0/24 match ip dport 21 0xffff classid 1:104 <конец вывода>

Вопрос - что делать, куда копать? Да, система - Debian 4.0r7

anonymous(*) (2009-03-30 14:59:16)

Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.0.7) Gecko/2009030814 Iceweasel/3.0.7 (Debian-3.0.7-1)

[Ответить на это сообщение]
[#] [Добавить метку] [Редактировать] Ответ на: Настроить приоритет трафика по портам... от anonymous 2009-03-30 14:59:16
avatar
Скрыть

Re:Настроить приоритет трафика по портам...

cat /etc/shaperd/shaperd.conf >> сюда ?

magesor(*)(2009-04-02 19:32:57)

Mozilla/5.0 (compatible; Konqueror/3.5; Linux 2.6.27.19-3.2-pae; X11; i686; en_US, ru) KHTML/3.5.10 (like Gecko) SUSE
Этот тред читают 1 пользователь:
Анонимных: 1
Зарегистрированных: 0




(c) 2010-2020 LOR-NG Developers Group
Powered by TimeMachine

Valid HTML 4.01 Transitional Правильный CSS!