« Отговор #5 -: Mar 17, 2010, 11:47 »
Така намерих този скрипт прави лимит няма проблем , обаче проблема е че като тръгне да си сваля от браусера сами юсер не му прави лимит . ИДЕИ ??
#copy this into the scrips and save and exit the program
#-------------------------------------------------------------------------------------------
# Ztelco.com Simple QoS Script v0.2
# Script is tested working with asterisk and polycom 501 phones.
#remove any old rules before continuing
tc qdisc del dev eth1 root
tc qdisc add dev eth1 root handle 1: prio priomap 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 0
tc qdisc add dev eth1 parent 1:1 handle 10: sfq limit 3000
tc qdisc add dev eth1 parent 1:2 handle 20: sfq
#uncomment out this line if you want to rate limit your connection.
tc qdisc add dev eth1 parent 1:3 handle 30: tbf rate 0.8mbit burst 5kb latency 100ms peakrate 0.82mbit minburst 1540
#if you uncommented the line above, then comment this line out
#tc qdisc add dev eth1 parent 1:3 handle 30: sfq #no limit on traffic (could still bomb your pipe if you try)
#filter the packets into the correct places
tc filter add dev eth1 protocol ip parent 1: prio 1 u32 match ip dport 80 0xffff flowid 1:1
tc filter add dev eth1 protocol ip parent 1: prio 1 u32 match ip sport 80 0xffff flowid 1:1
tc filter add dev eth1 protocol ip parent 1: prio 1 u32 match ip tos 0x10 0xff flowid 1:1
tc filter add dev eth1 parent 1:0 protocol ip u32 match ip dport 80 0xffff match ip dst 192.168.1.1/32 classid 1:10
#----------------------------------------