Dengan menggunakan
PCQ bandwidth kita akan terpakai dengan maksimal, istilahnya tidak ada bandwidth
nganggur.
IP Addres
Disini penulis
menggunakan bandwidth 1M Download /512K Upload
172.16.16.45/24 wan
192.168.1.1/24 lan
1.
Setting Mangle
;;;
all connection
chain=prerouting
action=mark-connection new-connection-mark=pree-all-conn passthrough=yes
src-address=192.168.1.0/24
chain=postrouting
action=mark-connection new-connection-mark=post-all-conn passthrough=yes
dst-address=192.168.1.0/24
;;;
all packet
chain=prerouting
action=mark-packet new-packet-mark=pree-all-pack passthrough=yes
src-address=192.168.1.0/24 connection-mark=pree-all-conn
chain=postrouting
action=mark-packet new-packet-mark=post-all-pack passthrough=yes
dst-address=192.168.1.0/24 connection-mark=post-all-conn
;;;
Client 04 Pack
chain=prerouting
action=mark-packet new-packet-mark=pree-outo-up passthrough=no
src-address=192.168.1.4 connection-mark=pree-all-conn
chain=postrouting
action=mark-packet new-packet-mark=post-auto-down passthrough=no
dst-address=192.168.1.4 connection-mark=post-all-conn
;;;
Client 05 Pack
chain=prerouting
action=mark-packet new-packet-mark=pree-outo-up passthrough=no
src-address=192.168.1.5 connection-mark=pree-all-conn
chain=postrouting
action=mark-packet new-packet-mark=post-auto-down passthrough=no
dst-address=192.168.1.5 connection-mark=post-all-conn
2.
Queue Type
name="auto-down"
kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=dst-address
pcq-total-limit=2000 pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=10s pcq-src-address-mask=32
pcq-dst-address-mask=32 pcq-src-address6-mask=128 pcq-dst-address6-mask=128
name="auto-up"
kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=src-address
pcq-total-limit=2000 pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=10s pcq-src-address-mask=32
pcq-dst-address-mask=32 pcq-src-address6-mask=128 pcq-dst-address6-mask=128
3.
Queeu Tree
name="all-down"
parent=global-out packet-mark=post-all-pack limit-at=0 priority=8 max-limit=1M
burst-limit=0 burst-threshold=0 burst-time=0s
name="all-upload"
parent=global-in packet-mark=pree-all-pack limit-at=0 priority=8 max-limit=512k
burst-limit=0 burst-threshold=0 burst-time=0s
name="Client-down"
parent=all-down packet-mark=post-auto-down limit-at=0 queue=auto-down
priority=8 max-limit=1M burst-limit=0 burst-threshold=0 burst-time=0s
name="Client-up"
parent=all-upload packet-mark=pree-all-pack limit-at=0 queue=auto-up priority=8
max-limit=512k burst-limit=0 burst-threshold=0 burst-time=0s
Terimakasih sudah mengunjugi blog saya
Selamat Mencoba :)
0 comments:
Post a Comment