помогите разобраться
в логах
Sep 22 19:36:29 ubuntu kernel: HTB: quantum of class 10001 is big. Consider r2q change.
Sep 22 19:36:29 ubuntu kernel: HTB: quantum of class 10010 is big. Consider r2q change.
Sep 22 19:36:29 ubuntu kernel: HTB: quantum of class 10011 is big. Consider r2q change.
Sep 22 19:36:29 ubuntu kernel: HTB: quantum of class 10012 is big. Consider r2q change.
Sep 22 19:36:29 ubuntu kernel: HTB: quantum of class 10013 is big. Consider r2q change.
Sep 22 19:36:29 ubuntu kernel: HTB: quantum of class 10001 is big. Consider r2q change.
Sep 22 19:36:29 ubuntu kernel: HTB: quantum of class 10010 is big. Consider r2q change.
Sep 22 19:36:29 ubuntu kernel: HTB: quantum of class 10011 is big. Consider r2q change.
сам скрипт:
#!/bin/bash
# Description: Балансировка нагрузки на сеть
# "Очищаем" интерфейс eht1
tc qdisc del dev eth1 root
# Создаем заново дисциплину и указываем дефолтный класс
tc qdisc add dev eth1 root handle 1:0 htb default 13
RATE_OUT=100
# Создаем общий для клиентов класс
tc class add dev eth1 parent 1:0 classid 1:1 htb rate $[$RATE_OUT/1]Mbit ceil $[$RATE_OUT/1]Mbit
# Правила мои правила
tc class add dev eth1 parent 1:1 classid 1:10 htb rate $[$RATE_OUT/4]Mbit ceil $[$RATE_OUT/1]Mbit prio 1
tc class add dev eth1 parent 1:1 classid 1:11 htb rate $[$RATE_OUT/4]Mbit ceil $[$RATE_OUT/1]Mbit prio 2
tc class add dev eth1 parent 1:1 classid 1:12 htb rate $[$RATE_OUT/4]Mbit ceil $[$RATE_OUT/1]Mbit prio 3
tc class add dev eth1 parent 1:1 classid 1:13 htb rate $[$RATE_OUT/4]Mbit ceil $[$RATE_OUT/1]Mbit prio 4
tc qdisc add dev eth1 parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev eth1 parent 1:11 handle 11: sfq perturb 10
tc qdisc add dev eth1 parent 1:12 handle 12: sfq perturb 10
tc qdisc add dev eth1 parent 1:13 handle 13: sfq perturb 10
# 1 комп
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.2 match ip protocol 1 0xff classid 1:10
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.2 match ip protocol 17 0xff match ip sport 27016 0xfffe classid 1:10 # remote cs server
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.2 match ip protocol 17 0xff match ip dport 27016 0xfffe classid 1:10 # our cs server
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.2 match ip protocol 17 0xff match ip sport 27017 0xfffe classid 1:10 # remote cs server
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.2 match ip protocol 17 0xff match ip dport 27017 0xfffe classid 1:10 # our cs server
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.2 match ip protocol 17 0xff match ip sport 27018 0xfffe classid 1:10 # remote cs server
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.2 match ip protocol 17 0xff match ip dport 27018 0xfffe classid 1:10 # our cs server
tc filter add dev eth1 parent 1:0 protocol ip prio 2 u32 match ip dst 192.168.0.2 match ip protocol 6 0xff match ip sport 22 0xfffe classid 1:10 # remote ssh server
tc filter add dev eth1 parent 1:0 protocol ip prio 2 u32 match ip dst 192.168.0.2 match ip protocol 6 0xff match ip dport 22 0xfffe classid 1:10 # our ssh server
tc filter add dev eth1 parent 1:0 protocol ip prio 2 u32 match ip dst 192.168.0.2 match ip protocol 6 0xff match ip sport 10000 0xfffe classid 1:10
tc filter add dev eth1 parent 1:0 protocol ip prio 2 u32 match ip dst 192.168.0.2 match ip protocol 6 0xff match ip dport 10000 0xfffe classid 1:10
tc filter add dev eth1 parent 1:0 protocol ip prio 2 u32 match ip dst 192.168.0.2 match ip protocol 6 0xff match ip sport 443 0xfffe classid 1:10
tc filter add dev eth1 parent 1:0 protocol ip prio 3 u32 match ip dst 192.168.0.2 match ip protocol 6 0xff match ip sport 80 0xfffe classid 1:10
tc filter add dev eth1 parent 1:0 protocol ip prio 3 u32 match ip dst 192.168.0.2 match ip protocol 6 0xff match ip dport 80 0xfffe classid 1:10
tc filter add dev eth1 parent 1:0 protocol ip prio 4 u32 match ip dst 192.168.0.2 match ip protocol 6 0xff match ip sport 21 0xfffe classid 1:10
tc filter add dev eth1 parent 1:0 protocol ip prio 4 u32 match ip dst 192.168.0.2 match ip protocol 6 0xff match ip dport 21 0xfffe classid 1:10
# 2 комп
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.3 match ip protocol 6 0xff match ip sport 80 0xfffe classid 1:11
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.3 match ip protocol 6 0xff match ip dport 80 0xfffe classid 1:11
tc filter add dev eth1 parent 1:0 protocol ip prio 2 u32 match ip dst 192.168.0.3 match ip protocol 6 0xff match ip sport 21 0xfffe classid 1:11
tc filter add dev eth1 parent 1:0 protocol ip prio 2 u32 match ip dst 192.168.0.3 match ip protocol 6 0xff match ip dport 21 0xfffe classid 1:11
# 3 комп
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.4 match ip protocol 6 0xff match ip sport 80 0xfffe classid 1:11
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.4 match ip protocol 6 0xff match ip dport 80 0xfffe classid 1:11
tc filter add dev eth1 parent 1:0 protocol ip prio 2 u32 match ip dst 192.168.0.4 match ip protocol 6 0xff match ip sport 21 0xfffe classid 1:11
tc filter add dev eth1 parent 1:0 protocol ip prio 2 u32 match ip dst 192.168.0.4 match ip protocol 6 0xff match ip dport 21 0xfffe classid 1:11
# По умолчанию
# "Очищаем" интерфейс eht0
tc qdisc del dev eth0 root
# Создаем заново дисциплину и указываем дефолтный класс
tc qdisc add dev eth0 root handle 1:0 htb default 11
# Создаем общий для клиентов класс
tc class add dev eth0 parent 1:0 classid 1:1 htb rate $[$RATE_OUT/1]Mbit ceil $[$RATE_OUT/1]Mbit
# Правила мои правила
tc class add dev eth0 parent 1:1 classid 1:10 htb rate $[$RATE_OUT/2]Mbit ceil $[$RATE_OUT/1]Mbit prio 1
tc class add dev eth0 parent 1:1 classid 1:11 htb rate $[$RATE_OUT/2]Mbit ceil $[$RATE_OUT/1]Mbit prio 2
tc qdisc add dev eth0 parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev eth0 parent 1:11 handle 11: sfq perturb 10
# Для меня
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip protocol 1 0xff classid 1:10
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip protocol 17 0xff match ip sport 27015 0xfffe classid 1:10 # remote cs server
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip protocol 17 0xff match ip dport 27015 0xfffe classid 1:10 # our cs server
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip protocol 17 0xff match ip sport 27019 0xfffe classid 1:10 # remote cs server
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip protocol 17 0xff match ip dport 27019 0xfffe classid 1:10 # our cs server
tc filter add dev eth0 parent 1:0 protocol ip prio 3 u32 match ip protocol 6 0xff match ip sport 80 0xfffe classid 1:10
tc filter add dev eth0 parent 1:0 protocol ip prio 3 u32 match ip protocol 6 0xff match ip dport 80 0xfffe classid 1:10
tc filter add dev eth0 parent 1:0 protocol ip prio 4 u32 match ip protocol 6 0xff match ip sport 21 0xfffe classid 1:10
tc filter add dev eth0 parent 1:0 protocol ip prio 4 u32 match ip protocol 6 0xff match ip dport 21 0xfffe classid 1:10
а хочу я что бы работали приоритеты, вся скорость делилась между всеми, но если включается приоритетное правило большую часть отдавалась ей, и если все правила свободны вся скорость отдавалась что бы тому кто юзает инет, но вся проблема в том если я пишу по 50 мегабит каждому, это предел для них, они не берут остальное от других правил , но зато в логах ни каких ошибок.
eth0 в инет смотрит
eth1 в локалку