User Tools

Site Tools


сервис_qos

This is an old revision of the document!


Сервис QOS

Использование ipfw

Равномерное ограничение полосы для всех с исключениями

[gX:~] # cat /etc/ipfw.conf
pipe 1 config bw 64kbit/s mask dst-ip 0xffffffff
pipe 2 config bw 100mbit/s

add 10 pipe 2 ip from any to 192.168.100+X.2
add 20 pipe 1 ip from any to 192.168.100+X.0/24

add 100 allow ip from any to any

[gX:~] # cat /etc/rc.conf
…
firewall_enable="YES"
firewall_type="/etc/ipfw.conf"
…

[gX:~] # kldload dummynet

[gX:~] # /etc/rc.d/ipfw start
сервис_qos.1238044577.txt.gz · Last modified: 2013/05/22 13:50 (external edit)