Situatie
Vrem sa limitam viteza de download pe internet a unui IP ( in cazul meu 192.168.1.3)
Solutie
Accesam meniul de confugrare al routerului http://192.168.1.1 in cazul meu
click pe Administration > Commands
Selectam scripul de mai jos si ii dam copy, apoi dam paste in Commands , apoi dam click pe Save Firewall
TCA=”tc class add dev br0″
TFA=”tc filter add dev br0″
TQA=”tc qdisc add dev br0″
SFQ=”sfq perturb 10″
tc qdisc del dev br0 root
tc qdisc add dev br0 root handle 1: htb
tc class add dev br0 parent 1: classid 1:1 htb rate 99999kbit
$TCA parent 1:1 classid 1:10 htb rate 512kbit ceil 1024kbit prio 2
$TQA parent 1:10 handle 10: $SFQ
$TFA parent 1:0 prio 2 protocol ip handle 10 fw flowid 1:10
iptables -t mangle -A POSTROUTING -d 192.168.1.3 -j MARK –set-mark 10
Leave A Comment?