- 0 comments

Queue Tree 01

Queue tree biasa digunakan untuk mengatur upload dan download. Rule saya dapatkan dari om Reges, menurut saya ini rule yang simple dan mudah dipahami ,makasih rule-nya om…. J
Kosakata :
Prerouting               : untuk memotong jalur dari lan ke internet/donwload
Posthrouting           : untuk memotong jalur dari internet ke lan/download

Ip address
Wan : 172.16.17.35/24
Lan : 192.168.1.1/24
LANGKAH :
1.        Buat  mangle
/ip firewall mangle

;;;all-conn
add chain=prerouting src-address=192.168.1.0/24 action=mark-connection new-connection-mark=all-conn-pre passthrough=yes

add chain=postrouting dst-address=192.168.1.0/24 action=mark-connection new-connection-mark=all-conn-post passthrough=yes

;;;all packet
add chain=prerouting src-address=192.168.1.0/24 action=mark-packet new-packet-mark=all-pack-pre connection-mark=all-conn-pre passthrough=yes

add chain=postrouting dst-address=192.168.1.0/24 action=mark-packet new-packet-mark=all-pack-post connection-mark=all-conn-post passthrough=yes

;;;client packet 003
add chain=prerouting src-address=192.168.1.3 action=mark-packet new-packet-mark=002-pack-pre connection-mark=all-conn-pre passthrough=no

add chain=postrouting dst-address=192.168.1.3 action=mark-packet new-packet-mark=002-pack-post connection-mark=all-conn-post passthrough=no

;;;Client packet 004
add chain=prerouting src-address=192.168.1.4 action=mark-packet new-packet-mark=004-pack-pre connection-mark=all-conn-pre passthrough=no

add chain=postrouting dst-address=192.168.1.4 action=mark-packet new-packet-mark=004-pack-post connection-mark=all-conn-post passthrough=no

2.        Buat Queue Tree
;;;ALL-DONLOAD
add name=all-donwload parent=global-out packet-mark=all-pack-post max-limit=1M priority=1

;;;ALL-UPLOAD
add name=all-upload parent=global-in packet-mark=all-pack-pre max-limit=1M priority=1

;;;CLIENT-003 DONWLOAD/UPLOAD
add name=client003-download parent=all-donwload packet-mark=003-pack-post limit-at=512K max-limit=756K

add name=client003-upload parent=all-upload packet-mark=003-pack-pre limit-at=512K max-limit=756k

;;;CLIENT-004 DONWLOAD/UPLOAD
add name=client004-download parent=all-donwload packet-mark=004-pack-post limit-at=512K max-limit=756K

add name=client004-upload parent=all-upload packet-mark=004-pack-pre limit-at=512K max-limit=756k

Terimakasih telah mengunjungi blog saya
Selamat mencoba :)

0 comments:

Post a Comment