Manajemen Bandwidht menggunakan Queue Tree
Langkah 1 :
ip firewall raw
add chain=prerouting action=add-dst-to-address-list content=youtube.com log=no log-prefix="" address-list=YouTube IP address-list-timeout=none-dynamic comment=youtube-web
add chain chain=prerouting action=add-dst-to-address-list content=googlevideo.com log=no log-prefix="" address-list=YouTube IP address-list-timeout=none-dynamic comment=youtube-video
add chain=prerouting action=add-dst-to-address-list dst-port=30000-30150,5001,5003,9001 content=.youngjoygame.com log=no log-prefix="" protocol=tcp address-list=ML address-list-timeout=none-dynamic comment=mobile-legends
add chain=prerouting action=add-dst-to-address-list dst-port=10001-10094 log=no log-prefix="" protocol=tcp address-list=AOV address-list-timeout=none-dynamic comment=AOV
add chain=prerouting action=add-dst-to-address-list dst-port=10080,17 log=no log-prefix="" protocol=udp address-list=AOV address-list-timeout=none-dynamic
add chain=prerouting action=add-dst-to-address-list dst-port=10491,10010,10013,10612,20002,20001,20000,12235,13748,13972,13894,11455,10096,10039 log=no log-prefix="" protocol=udp address-list=PUBG address-list-timeout=none-dynamic comment=pubg
add chain=prerouting action=add-dst-to-address-list dst-port=10012,17500 content=.igamecj.com log=no log-prefix="" protocol=tcp address-list=PUBG address-list-timeout=none-dynamic
add chain=prerouting action=add-dst-to-address-list dst-port=7000-8020 content=.superevil.net log=no log-prefix="" protocol=tcp address-list=vainglory address-list-timeout=none-dynamic comment=vanglory
add chain=prerouting action=add-dst-to-address-list content=.ihago.net log=no log-prefix="" address-list=hago address-list-timeout=none-dynamic comment=hago
add chain=prerouting action=add-dst-to-address-list dst-port=7006,39003,39698,39779 log=no log-prefix="" protocol=tcp address-list=free-fire address-list-timeout=none-dynamic comment=Garena-Freefire
add chain=prerouting action=add-dst-to-address-list dst-port=7008,10000-10007 log=no log-prefix="" protocol=udp address-list=free-fire address-list-timeout=none-dynamic
add chain=prerouting action=add-dst-to-address-list dst-port=44590-44610 log=no log-prefix="" protocol=tcp address-list=PB-mobile address-list-timeout=none-dynamic comment=PB-Mobile
add chain=prerouting action=add-dst-to-address-list dst-port=9330-9340 log=no log-prefix="" protocol=tcp address-list=COC address-list-timeout=none-dynamic comment=COC
add chain=prerouting action=add-dst-to-address-list dst-port=7500-7700,17000-20100 log=no log-prefix="" protocol=tcp address-list=COD_mobile address-list-timeout=none-dynamic comment=COD-Mobile
ip firewall mangle
add chain=forward action=mark-connection new-connection-mark=con-youtube passthrough=yes dst-address-list=YouTube IP log=no log-prefix="" comment=youtube
add chain=forward action=mark-packet new-packet-mark=pac-youtube passthrough=no connection-mark=con-youtube log=no log-prefix=""
add chain=prerouting action=mark-connection new-connection-mark=con-icmp passthrough=yes protocol=icmp log=no log-prefix="" comment=ICMP
add chain=prerouting action=mark-packet new-packet-mark=icmp-down passthrough=no connection-mark=con-icmp in-interface=ether1-Wan log=no log-prefix=""
add chain=prerouting action=mark-packet new-packet-mark=icmp-up passthrough=no connection-mark=con-icmp in-interface=ether5-Hotspot_PC log=no log-prefix=""
add chain=forward action=mark-connection new-connection-mark=con-browsing passthrough=yes dst-address-list=!Local connection-mark=!con-heavy log=no log-prefix="" comment=Small-Browsing
add chain=forward action=mark-packet new-packet-mark=small-browsing_down passthrough=no connection-mark=con-browsing in-interface=ether1-Wan log=no log-prefix=""
add chain=forward action=mark-packet new-packet-mark=small-browsing_up passthrough=no connection-mark=con-browsing in-interface=ether5-Hotspot_PC log=no log-prefix=""
add chain=prerouting action=mark-connection new-connection-mark=con-heavy passthrough=yes dst-address-list=!local connection-mark=con-browsing connection-bytes=1024000-0 connection-rate=256k-204800k log=no log-prefix="" comment=Heavy-Browsing
add chain=forward action=mark-packet new-packet-mark=heavy-down passthrough=no connection-mark=con-heavy in-interface=ether1-Wan log=no log-prefix=""
add chain=forward action=mark-packet new-packet-mark=heavy-up passthrough=no connection-mark=con-heavy in-interface=ether5-Hotspot_PC log=no log-prefix=""
add chain=forward action=mark-connection new-connection-mark=con-ml passthrough=yes dst-address-list=ML log=no log-prefix="" comment=ML
add chain=forward action=mark-packet new-packet-mark=pac-ml passthrough=no connection-mark=con-ml log=no log-prefix=""
add chain=forward action=mark-connection new-connection-mark=con-pubg passthrough=yes dst-address-list=PUBG log=no log-prefix="" comment=pubg
add chain=forward action=mark-packet new-packet-mark=pac-pubg passthrough=no connection-mark=con-pubg log=no log-prefix=""
add chain=forward action=mark-connection new-connection-mark=con-ff passthrough=yes dst-address-list=free-fire log=no log-prefix="" comment=freefire
add chain=forward action=mark-packet new-packet-mark=FreeFire passthrough=no connection-mark=con-ff log=no log-prefix=""
add chain=forward action=mark-connection new-connection-mark=con-pbm passthrough=yes dst-address-list=PB-mobile log=no log-prefix="" comment=PB-Mobile
add chain=forward action=mark-packet new-packet-mark=pac-pbm passthrough=no connection-mark=con-pbm log=no log-prefix=""
add chain=forward action=mark-connection new-connection-mark=con-coc passthrough=yes dst-address-list=COC log=no log-prefix="" comment=COC
add chain=forward action=mark-packet new-packet-mark=pac-coc passthrough=yes connection-mark=con-coc log=no log-prefix=""
add chain=forward action=mark-connection new-connection-mark=con-hago passthrough=yes dst-address-list=hago log=no log-prefix="" comment=hago
add chain=prerouting action=mark-packet new-packet-mark=pac-hago passthrough=no connection-mark=con-hago log=no log-prefix=""
queue tree
add name="GLOBAL" parent=global packet-mark="" limit-at=0 queue=default-small priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.2
add name="Download" parent=GLOBAL packet-mark="" limit-at=0 queue=default-small priority=2 max-limit=25M burst-limit=28M burst-threshold=28M burst-time=5s bucket-size=0.1
add name="Upload" parent=GLOBAL packet-mark="" limit-at=0 queue=default-small priority=8 max-limit=30M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1
add name="Small Browsing Download" parent=Download packet-mark=small-browsing_down limit-at=1M queue=default-small priority=8 max-limit=10M burst-limit=11M burst-threshold=11M burst-time=5s bucket-size=0.1
add name="Small Browsing Upload" parent=Upload packet-mark=small-browsing_up limit-at=1M queue=default-small priority=8 max-limit=15M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1
add name="ICMP Download" parent=Download packet-mark=icmp-down limit-at=0 queue=default-small priority=8 max-limit=5M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1
add name="ICMP Upload" parent=Upload packet-mark=icmp-up limit-at=3M queue=default-small priority=8 max-limit=5M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1
name="Heavy Browsing Download" parent=Download packet-mark=heavy-down limit-at=3M queue=default-small priority=8 max-limit=10M burst-limit=12M burst-threshold=12M burst-time=5s bucket-size=0.1
add name="Heavy Browsing Upload" parent=Upload packet-mark=heavy-up limit-at=2M queue=default-small priority=8 max-limit=15M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1
add name="FreeFire" parent=GLOBAL packet-mark=FreeFire limit-at=1M queue=default-small priority=8 max-limit=3M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1
add name="ML" parent=GLOBAL packet-mark=pac-ml limit-at=3M queue=default-small priority=8 max-limit=5M burst-limit=5M burst-threshold=5M burst-time=10s bucket-size=0.1
add name="PUBG" parent=GLOBAL packet-mark=pac-pubg limit-at=3M queue=default-small priority=1 max-limit=5M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1
add name="Hago" parent=GLOBAL packet-mark=pac-hago limit-at=0 queue=default-small priority=8 max-limit=2M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1
add name="1. YouTube" parent=GLOBAL packet-mark=pac-youtube limit-at=4M queue=default-small priority=6 max-limit=15M burst-limit=17M burst-threshold=17M burst-time=8s bucket-size=0.1