htb berhasil, horeee

8:58 am TEKNIK

tc qdisc del dev eth4 root
tc qdisc add dev eth4 root handle 1: htb default 30
tc class add dev eth4 parent 1: classid 1:1 htb rate 256kbit burst 15k
tc class add dev eth4 parent 1:1 classid 1:10 htb rate 128kbit ceil 256kbit burst 15k
tc class add dev eth4 parent 1:1 classid 1:20 htb rate 128kbit ceil 256kbit burst 15k
tc qdisc add dev eth4 parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev eth4 parent 1:20 handle 20: sfq perturb 10
U32=”tc filter add dev eth4 protocol ip parent 1:0 prio 1 u32″
$U32 match ip sport 8118 0xffff match ip dst 10.122.69.131 flowid 1:10
$U32 match ip sport 8118 0xffff flowid 1:20
tc filter show dev eth4

membagi bw antara dua kelas, yaitu dari port 8118 mengarah ke 69.131, dan trafik lainnya

sip lah!

Leave a Comment

Your comment

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.