ether1-speedy
ether3-lokal
ether4-hotspot
ether5-proxy
pppoe-out1
/ip address
add address=192.168.1.254/24 broadcast=192.168.1.255 comment="" disabled=no \
interface=ether1-lokal network=192.168.1.0
add address=192.168.20.1/30 broadcast=192.168.20.3 comment="" disabled=no \
interface=ether5-proxy network=192.168.20.0
/ip firewall mangle
add action=mark-connection chain=prerouting comment="PRIORITY DOWN" disabled=no in-interface=pppoe-out1 new-connection-mark=icmp_down passthrough=yes protocol=icmp
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=dns_down passthrough=yes protocol=udp src-port=53
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=dns_down passthrough=yes protocol=tcp src-port=53
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=PB_down passthrough=yes protocol=udp src-port=40000-40010
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=PB_down passthrough=yes protocol=tcp src-port=\
39100,39110,39120,39190,39220,49100
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=PK_down passthrough=yes protocol=tcp src-port=\
843,9339,1111-1120,11000-14000
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=Game_down passthrough=yes protocol=tcp src-port=\
6000-6152,1818,19101,19000,27780,29000,22100
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=Game_down passthrough=yes protocol=tcp src-port=\
5340,5352,11132,11458,18901-18910,13045,27018
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=Game_down passthrough=yes protocol=udp src-port=\
42489,12020-12080,13000-13080,9401,9600,40040-40500,1293,1479
add action=mark-connection chain=postrouting comment="PRIORITY UP" disabled=no new-connection-mark=icmp_up out-interface=pppoe-out1 passthrough=yes protocol=icmp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=53 new-connection-mark=dns_up out-interface=pppoe-out1 passthrough=yes protocol=udp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=53 new-connection-mark=dns_up out-interface=pppoe-out1 passthrough=yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=40000-40010 new-connection-mark=PB_up out-interface=pppoe-out1 passthrough=yes protocol=udp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=39100,39110,39120,39190,39220,49100 new-connection-mark=PB_up out-interface=pppoe-out1 \
passthrough=yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=843,9339,1111-1120,11000-14000 new-connection-mark=PK_up out-interface=pppoe-out1 \
passthrough=yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=6000-6152,1818,19101,19000,27780,29000,22100 new-connection-mark=Game_up out-interface=\
pppoe-out1 passthrough=yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=5340,5352,11132,11458,18901-18910,13045,27018 new-connection-mark=Game_up out-interface=\
pppoe-out1 passthrough=yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=42489,12020-12080,13000-13080,9401,9600,40040-40500,1293,1479 new-connection-mark=Game_up \
out-interface=pppoe-out1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=REMOTE disabled=no dst-port=8291,22 in-interface=pppoe-out1 new-connection-mark=Remote_down passthrough=yes protocol=\
tcp
add action=mark-connection chain=postrouting comment="" disabled=no new-connection-mark=Remote_up out-interface=pppoe-out1 passthrough=yes protocol=tcp src-port=8291,22
add action=mark-packet chain=prerouting comment="PACKET PRIORITY DOWN" connection-mark=icmp_down disabled=no in-interface=pppoe-out1 new-packet-mark=1st_down passthrough=\
no
add action=mark-packet chain=prerouting comment="" connection-mark=PB_down disabled=no in-interface=pppoe-out1 new-packet-mark=2st_down passthrough=no
add action=mark-packet chain=prerouting comment="" connection-mark=dns_down disabled=no in-interface=pppoe-out1 new-packet-mark=3st_down passthrough=no
add action=mark-packet chain=prerouting comment="" connection-mark=PK_down disabled=no in-interface=pppoe-out1 new-packet-mark=3st_down passthrough=no
add action=mark-packet chain=prerouting comment="" connection-mark=Game_down disabled=no in-interface=pppoe-out1 new-packet-mark=3st_down passthrough=no
add action=mark-packet chain=prerouting comment="" connection-mark=Remote_down disabled=no in-interface=pppoe-out1 new-packet-mark=3st_down passthrough=no
add action=mark-packet chain=postrouting comment="PACKET PRIORITY UP" connection-mark=icmp_up disabled=no new-packet-mark=1st_up out-interface=pppoe-out1 passthrough=no
add action=mark-packet chain=postrouting comment="" connection-mark=PB_up disabled=no new-packet-mark=2st_up out-interface=pppoe-out1 passthrough=no
add action=mark-packet chain=postrouting comment="" connection-mark=dns_up disabled=no new-packet-mark=3st_up out-interface=pppoe-out1 passthrough=no
add action=mark-packet chain=postrouting comment="" connection-mark=PK_up disabled=no new-packet-mark=3st_up out-interface=pppoe-out1 passthrough=no
add action=mark-packet chain=postrouting comment="" connection-mark=Game_up disabled=no new-packet-mark=3st_up out-interface=pppoe-out1 passthrough=no
add action=mark-packet chain=postrouting comment="" connection-mark=Remote_up disabled=no new-packet-mark=3st_up out-interface=pppoe-out1 passthrough=no
add action=mark-connection chain=prerouting comment="HTTP,HTTPS(alt)" disabled=no in-interface=pppoe-out1 new-connection-mark=HTTP_down passthrough=yes protocol=tcp \
src-port=80,81,443,8080,8081
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=80,81,443,8080,8081 new-connection-mark=HTTP_up out-interface=pppoe-out1 passthrough=yes \
protocol=tcp
add action=mark-packet chain=prerouting comment="BYTE DIVIDER DOWN" connection-bytes=5000001-0 connection-mark=HTTP_down disabled=no in-interface=pppoe-out1 \
new-packet-mark=+5M passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-bytes=1000001-5000000 connection-mark=HTTP_down disabled=no in-interface=pppoe-out1 new-packet-mark=5M \
passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-bytes=500001-1000000 connection-mark=HTTP_down disabled=no in-interface=pppoe-out1 new-packet-mark=1M \
passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-bytes=200001-500000 connection-mark=HTTP_down disabled=no in-interface=pppoe-out1 new-packet-mark=500K \
passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-bytes=100001-200000 connection-mark=HTTP_down disabled=no in-interface=pppoe-out1 new-packet-mark=200K \
passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-bytes=32001-100000 connection-mark=HTTP_down disabled=no in-interface=pppoe-out1 new-packet-mark=100K \
passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-bytes=1-32000 connection-mark=HTTP_down disabled=no in-interface=pppoe-out1 new-packet-mark=32K passthrough=\
no protocol=tcp
add action=mark-packet chain=postrouting comment="BYTE DIVIDER UP" connection-bytes=1000001-0 connection-mark=HTTP_up disabled=no new-packet-mark=+1m out-interface=\
pppoe-out1 passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="" connection-bytes=500001-1000000 connection-mark=HTTP_up disabled=no new-packet-mark=1m out-interface=pppoe-out1 \
passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="" connection-bytes=100001-500000 connection-mark=HTTP_up disabled=no new-packet-mark=500k out-interface=pppoe-out1 \
passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="" connection-bytes=50001-100000 connection-mark=HTTP_up disabled=no new-packet-mark=100k out-interface=pppoe-out1 \
passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="" connection-bytes=25001-50000 connection-mark=HTTP_up disabled=no new-packet-mark=50k out-interface=pppoe-out1 \
passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="" connection-bytes=10001-25000 connection-mark=HTTP_up disabled=no new-packet-mark=25k out-interface=pppoe-out1 \
passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="" connection-bytes=1-10000 connection-mark=HTTP_up disabled=no new-packet-mark=10k out-interface=pppoe-out1 passthrough=\
no protocol=tcp
add action=mark-connection chain=prerouting comment=OTHER disabled=no in-interface=pppoe-out1 new-connection-mark=Lastdown passthrough=yes
add action=mark-connection chain=postrouting comment="" disabled=no new-connection-mark=LastUp out-interface=pppoe-out1 passthrough=yes
add action=mark-packet chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-packet-mark=Lastdown passthrough=no
add action=mark-packet chain=postrouting comment="" disabled=no new-packet-mark=Lastup out-interface=pppoe-out1 passthrough=no
add action=mark-connection chain=prerouting comment="=PROXY= (up/down)" disabled=no dst-port=80 in-interface=ether5-proxy new-connection-mark=proxyup passthrough=yes \
protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-mark=proxyup disabled=no dst-address-list=nice in-interface=ether5-proxy new-packet-mark=IIXup passthrough=\
no
add action=mark-packet chain=prerouting comment="" connection-mark=proxyup disabled=no in-interface=ether5-proxy new-packet-mark=IXup passthrough=no
add action=mark-connection chain=postrouting comment="" disabled=no new-connection-mark=proxydown out-interface=ether5-proxy passthrough=yes protocol=tcp src-port=80
add action=mark-packet chain=postrouting comment="" connection-mark=proxydown disabled=no new-packet-mark=IIXdown out-interface=ether5-proxy passthrough=no \
src-address-list=nice
add action=mark-packet chain=postrouting comment="" connection-mark=proxydown disabled=no new-packet-mark=IXdown out-interface=ether5-proxy passthrough=no
add action=mark-connection chain=postrouting comment="HIT MARK untuk loss" disabled=no dscp=12 new-connection-mark=HIT passthrough=yes src-address=192.168.20.2
add action=mark-packet chain=postrouting comment="" connection-mark=HIT disabled=no dst-address=192.168.1.0/24 new-packet-mark=lokal passthrough=no
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=100M name=".:FREE OUT:." parent=global-out priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=2048k name=1.DOWNSTREAM parent=global-in priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=512k name=3.UPSTREAM parent=global-out priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=600k max-limit=1600k name=3.HTTPdown parent=1.DOWNSTREAM priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=100k max-limit=256k name=3.HTTPup parent=3.UPSTREAM priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=1600k name="2.IX/IIX down divider" parent=global-out priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=256k name="4.IX/IIX up divider" parent=global-in priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=64k max-limit=128k name="0.icmp up" packet-mark=1st_up parent=3.UPSTREAM priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=200k max-limit=400k name="1.st game up" packet-mark=2st_up parent=3.UPSTREAM priority=2 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=100k max-limit=200k name="2.nd game up" packet-mark=3st_up parent=3.UPSTREAM priority=3 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=32k max-limit=256k name=a.10k packet-mark=10k parent=3.HTTPup priority=4 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=64k max-limit=128k name="0.icmp down" packet-mark=1st_down parent=1.DOWNSTREAM priority=1 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=32k max-limit=256k name=b.25k packet-mark=25k parent=3.HTTPup priority=4 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=32k max-limit=256k name=c.50k packet-mark=50k parent=3.HTTPup priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=32k max-limit=256k name=d.100k packet-mark=100k parent=3.HTTPup priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=32k max-limit=256k name=e.500k packet-mark=500k parent=3.HTTPup priority=6 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=32k max-limit=256k name=f.1m packet-mark=1m parent=3.HTTPup priority=6 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=32k max-limit=256k name=g.+1m packet-mark=+1m parent=3.HTTPup priority=7 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=32k max-limit=256k name="last up" packet-mark=Lastup parent=3.HTTPup priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=500k max-limit=1M name="1.st game down" packet-mark=2st_down parent=1.DOWNSTREAM priority=2 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=500k max-limit=1M name="2.nd game down" packet-mark=3st_down parent=1.DOWNSTREAM priority=3 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=1500k name=a.32K packet-mark=32K parent=3.HTTPdown priority=4 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=1500k name=b.100K packet-mark=100K parent=3.HTTPdown priority=4 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=1125k name=d.500K packet-mark=500K parent=3.HTTPdown priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=750k name=e.1M packet-mark=1M parent=3.HTTPdown priority=6 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=750k name=f.5M packet-mark=5M parent=3.HTTPdown priority=6 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=1125k name=c.200K packet-mark=200K parent=3.HTTPdown priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=375k name=g.+5M packet-mark=+5M parent=3.HTTPdown priority=7 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=375k name="last down" packet-mark=Lastdown parent=3.HTTPdown priority=8 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=1500k name=IXdown packet-mark=IXdown parent="2.IX/IIX down divider" priority=8 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=1500k name=IIXdown packet-mark=IIXdown parent="2.IX/IIX down divider" priority=8 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=250k name=IIXup packet-mark=IIXup parent="4.IX/IIX up divider" priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=250k name=IXup packet-mark=IXup parent="4.IX/IIX up divider" priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=80M name=lokal packet-mark=lokal parent=".:FREE OUT:." priority=1 queue=default
credit to Anto_pj aan @ FMI
ether3-lokal
ether4-hotspot
ether5-proxy
pppoe-out1
/ip address
add address=192.168.1.254/24 broadcast=192.168.1.255 comment="" disabled=no \
interface=ether1-lokal network=192.168.1.0
add address=192.168.20.1/30 broadcast=192.168.20.3 comment="" disabled=no \
interface=ether5-proxy network=192.168.20.0
/ip firewall mangle
add action=mark-connection chain=prerouting comment="PRIORITY DOWN" disabled=no in-interface=pppoe-out1 new-connection-mark=icmp_down passthrough=yes protocol=icmp
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=dns_down passthrough=yes protocol=udp src-port=53
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=dns_down passthrough=yes protocol=tcp src-port=53
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=PB_down passthrough=yes protocol=udp src-port=40000-40010
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=PB_down passthrough=yes protocol=tcp src-port=\
39100,39110,39120,39190,39220,49100
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=PK_down passthrough=yes protocol=tcp src-port=\
843,9339,1111-1120,11000-14000
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=Game_down passthrough=yes protocol=tcp src-port=\
6000-6152,1818,19101,19000,27780,29000,22100
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=Game_down passthrough=yes protocol=tcp src-port=\
5340,5352,11132,11458,18901-18910,13045,27018
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=Game_down passthrough=yes protocol=udp src-port=\
42489,12020-12080,13000-13080,9401,9600,40040-40500,1293,1479
add action=mark-connection chain=postrouting comment="PRIORITY UP" disabled=no new-connection-mark=icmp_up out-interface=pppoe-out1 passthrough=yes protocol=icmp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=53 new-connection-mark=dns_up out-interface=pppoe-out1 passthrough=yes protocol=udp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=53 new-connection-mark=dns_up out-interface=pppoe-out1 passthrough=yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=40000-40010 new-connection-mark=PB_up out-interface=pppoe-out1 passthrough=yes protocol=udp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=39100,39110,39120,39190,39220,49100 new-connection-mark=PB_up out-interface=pppoe-out1 \
passthrough=yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=843,9339,1111-1120,11000-14000 new-connection-mark=PK_up out-interface=pppoe-out1 \
passthrough=yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=6000-6152,1818,19101,19000,27780,29000,22100 new-connection-mark=Game_up out-interface=\
pppoe-out1 passthrough=yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=5340,5352,11132,11458,18901-18910,13045,27018 new-connection-mark=Game_up out-interface=\
pppoe-out1 passthrough=yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=42489,12020-12080,13000-13080,9401,9600,40040-40500,1293,1479 new-connection-mark=Game_up \
out-interface=pppoe-out1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=REMOTE disabled=no dst-port=8291,22 in-interface=pppoe-out1 new-connection-mark=Remote_down passthrough=yes protocol=\
tcp
add action=mark-connection chain=postrouting comment="" disabled=no new-connection-mark=Remote_up out-interface=pppoe-out1 passthrough=yes protocol=tcp src-port=8291,22
add action=mark-packet chain=prerouting comment="PACKET PRIORITY DOWN" connection-mark=icmp_down disabled=no in-interface=pppoe-out1 new-packet-mark=1st_down passthrough=\
no
add action=mark-packet chain=prerouting comment="" connection-mark=PB_down disabled=no in-interface=pppoe-out1 new-packet-mark=2st_down passthrough=no
add action=mark-packet chain=prerouting comment="" connection-mark=dns_down disabled=no in-interface=pppoe-out1 new-packet-mark=3st_down passthrough=no
add action=mark-packet chain=prerouting comment="" connection-mark=PK_down disabled=no in-interface=pppoe-out1 new-packet-mark=3st_down passthrough=no
add action=mark-packet chain=prerouting comment="" connection-mark=Game_down disabled=no in-interface=pppoe-out1 new-packet-mark=3st_down passthrough=no
add action=mark-packet chain=prerouting comment="" connection-mark=Remote_down disabled=no in-interface=pppoe-out1 new-packet-mark=3st_down passthrough=no
add action=mark-packet chain=postrouting comment="PACKET PRIORITY UP" connection-mark=icmp_up disabled=no new-packet-mark=1st_up out-interface=pppoe-out1 passthrough=no
add action=mark-packet chain=postrouting comment="" connection-mark=PB_up disabled=no new-packet-mark=2st_up out-interface=pppoe-out1 passthrough=no
add action=mark-packet chain=postrouting comment="" connection-mark=dns_up disabled=no new-packet-mark=3st_up out-interface=pppoe-out1 passthrough=no
add action=mark-packet chain=postrouting comment="" connection-mark=PK_up disabled=no new-packet-mark=3st_up out-interface=pppoe-out1 passthrough=no
add action=mark-packet chain=postrouting comment="" connection-mark=Game_up disabled=no new-packet-mark=3st_up out-interface=pppoe-out1 passthrough=no
add action=mark-packet chain=postrouting comment="" connection-mark=Remote_up disabled=no new-packet-mark=3st_up out-interface=pppoe-out1 passthrough=no
add action=mark-connection chain=prerouting comment="HTTP,HTTPS(alt)" disabled=no in-interface=pppoe-out1 new-connection-mark=HTTP_down passthrough=yes protocol=tcp \
src-port=80,81,443,8080,8081
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=80,81,443,8080,8081 new-connection-mark=HTTP_up out-interface=pppoe-out1 passthrough=yes \
protocol=tcp
add action=mark-packet chain=prerouting comment="BYTE DIVIDER DOWN" connection-bytes=5000001-0 connection-mark=HTTP_down disabled=no in-interface=pppoe-out1 \
new-packet-mark=+5M passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-bytes=1000001-5000000 connection-mark=HTTP_down disabled=no in-interface=pppoe-out1 new-packet-mark=5M \
passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-bytes=500001-1000000 connection-mark=HTTP_down disabled=no in-interface=pppoe-out1 new-packet-mark=1M \
passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-bytes=200001-500000 connection-mark=HTTP_down disabled=no in-interface=pppoe-out1 new-packet-mark=500K \
passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-bytes=100001-200000 connection-mark=HTTP_down disabled=no in-interface=pppoe-out1 new-packet-mark=200K \
passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-bytes=32001-100000 connection-mark=HTTP_down disabled=no in-interface=pppoe-out1 new-packet-mark=100K \
passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-bytes=1-32000 connection-mark=HTTP_down disabled=no in-interface=pppoe-out1 new-packet-mark=32K passthrough=\
no protocol=tcp
add action=mark-packet chain=postrouting comment="BYTE DIVIDER UP" connection-bytes=1000001-0 connection-mark=HTTP_up disabled=no new-packet-mark=+1m out-interface=\
pppoe-out1 passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="" connection-bytes=500001-1000000 connection-mark=HTTP_up disabled=no new-packet-mark=1m out-interface=pppoe-out1 \
passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="" connection-bytes=100001-500000 connection-mark=HTTP_up disabled=no new-packet-mark=500k out-interface=pppoe-out1 \
passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="" connection-bytes=50001-100000 connection-mark=HTTP_up disabled=no new-packet-mark=100k out-interface=pppoe-out1 \
passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="" connection-bytes=25001-50000 connection-mark=HTTP_up disabled=no new-packet-mark=50k out-interface=pppoe-out1 \
passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="" connection-bytes=10001-25000 connection-mark=HTTP_up disabled=no new-packet-mark=25k out-interface=pppoe-out1 \
passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="" connection-bytes=1-10000 connection-mark=HTTP_up disabled=no new-packet-mark=10k out-interface=pppoe-out1 passthrough=\
no protocol=tcp
add action=mark-connection chain=prerouting comment=OTHER disabled=no in-interface=pppoe-out1 new-connection-mark=Lastdown passthrough=yes
add action=mark-connection chain=postrouting comment="" disabled=no new-connection-mark=LastUp out-interface=pppoe-out1 passthrough=yes
add action=mark-packet chain=prerouting comment="" disabled=no in-interface=pppoe-out1 new-packet-mark=Lastdown passthrough=no
add action=mark-packet chain=postrouting comment="" disabled=no new-packet-mark=Lastup out-interface=pppoe-out1 passthrough=no
add action=mark-connection chain=prerouting comment="=PROXY= (up/down)" disabled=no dst-port=80 in-interface=ether5-proxy new-connection-mark=proxyup passthrough=yes \
protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-mark=proxyup disabled=no dst-address-list=nice in-interface=ether5-proxy new-packet-mark=IIXup passthrough=\
no
add action=mark-packet chain=prerouting comment="" connection-mark=proxyup disabled=no in-interface=ether5-proxy new-packet-mark=IXup passthrough=no
add action=mark-connection chain=postrouting comment="" disabled=no new-connection-mark=proxydown out-interface=ether5-proxy passthrough=yes protocol=tcp src-port=80
add action=mark-packet chain=postrouting comment="" connection-mark=proxydown disabled=no new-packet-mark=IIXdown out-interface=ether5-proxy passthrough=no \
src-address-list=nice
add action=mark-packet chain=postrouting comment="" connection-mark=proxydown disabled=no new-packet-mark=IXdown out-interface=ether5-proxy passthrough=no
add action=mark-connection chain=postrouting comment="HIT MARK untuk loss" disabled=no dscp=12 new-connection-mark=HIT passthrough=yes src-address=192.168.20.2
add action=mark-packet chain=postrouting comment="" connection-mark=HIT disabled=no dst-address=192.168.1.0/24 new-packet-mark=lokal passthrough=no
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=100M name=".:FREE OUT:." parent=global-out priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=2048k name=1.DOWNSTREAM parent=global-in priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=512k name=3.UPSTREAM parent=global-out priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=600k max-limit=1600k name=3.HTTPdown parent=1.DOWNSTREAM priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=100k max-limit=256k name=3.HTTPup parent=3.UPSTREAM priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=1600k name="2.IX/IIX down divider" parent=global-out priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=256k name="4.IX/IIX up divider" parent=global-in priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=64k max-limit=128k name="0.icmp up" packet-mark=1st_up parent=3.UPSTREAM priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=200k max-limit=400k name="1.st game up" packet-mark=2st_up parent=3.UPSTREAM priority=2 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=100k max-limit=200k name="2.nd game up" packet-mark=3st_up parent=3.UPSTREAM priority=3 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=32k max-limit=256k name=a.10k packet-mark=10k parent=3.HTTPup priority=4 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=64k max-limit=128k name="0.icmp down" packet-mark=1st_down parent=1.DOWNSTREAM priority=1 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=32k max-limit=256k name=b.25k packet-mark=25k parent=3.HTTPup priority=4 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=32k max-limit=256k name=c.50k packet-mark=50k parent=3.HTTPup priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=32k max-limit=256k name=d.100k packet-mark=100k parent=3.HTTPup priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=32k max-limit=256k name=e.500k packet-mark=500k parent=3.HTTPup priority=6 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=32k max-limit=256k name=f.1m packet-mark=1m parent=3.HTTPup priority=6 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=32k max-limit=256k name=g.+1m packet-mark=+1m parent=3.HTTPup priority=7 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=32k max-limit=256k name="last up" packet-mark=Lastup parent=3.HTTPup priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=500k max-limit=1M name="1.st game down" packet-mark=2st_down parent=1.DOWNSTREAM priority=2 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=500k max-limit=1M name="2.nd game down" packet-mark=3st_down parent=1.DOWNSTREAM priority=3 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=1500k name=a.32K packet-mark=32K parent=3.HTTPdown priority=4 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=1500k name=b.100K packet-mark=100K parent=3.HTTPdown priority=4 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=1125k name=d.500K packet-mark=500K parent=3.HTTPdown priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=750k name=e.1M packet-mark=1M parent=3.HTTPdown priority=6 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=750k name=f.5M packet-mark=5M parent=3.HTTPdown priority=6 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=1125k name=c.200K packet-mark=200K parent=3.HTTPdown priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=375k name=g.+5M packet-mark=+5M parent=3.HTTPdown priority=7 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k max-limit=375k name="last down" packet-mark=Lastdown parent=3.HTTPdown priority=8 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=1500k name=IXdown packet-mark=IXdown parent="2.IX/IIX down divider" priority=8 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=1500k name=IIXdown packet-mark=IIXdown parent="2.IX/IIX down divider" priority=8 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=250k name=IIXup packet-mark=IIXup parent="4.IX/IIX up divider" priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=250k name=IXup packet-mark=IXup parent="4.IX/IIX up divider" priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=80M name=lokal packet-mark=lokal parent=".:FREE OUT:." priority=1 queue=default
credit to Anto_pj aan @ FMI
Comments
Post a Comment