Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #indihome 10mbps, single wan/internet
- #ether1 adalah wan/sumber internet
- #firewall address list
- /ip firewall address-list
- add list="private-lokal" address=0.0.0.0/8
- add list="private-lokal" address=10.0.0.0/8
- add list="private-lokal" address=100.64.0.0/10
- add list="private-lokal" address=127.0.0.0/8
- add list="private-lokal" address=169.254.0.0/16
- add list="private-lokal" address=172.16.0.0/12
- add list="private-lokal" address=192.0.0.0/24
- add list="private-lokal" address=192.0.2.0/24
- add list="private-lokal" address=192.168.0.0/16
- add list="private-lokal" address=198.18.0.0/15
- add list="private-lokal" address=198.51.100.0/24
- add list="private-lokal" address=203.0.113.0/24
- add list="private-lokal" address=224.0.0.0/3
- #firewall mangle
- /ip firewall mangle
- add action=mark-connection chain=input comment=private-lokal dst-address-list=private-lokal new-connection-mark=private-lokal passthrough=yes \
- src-address-list=private-lokal
- add action=mark-connection chain=prerouting comment=private-lokal dst-address-list=private-lokal new-connection-mark=private-lokal passthrough=yes \
- src-address-list=private-lokal
- add action=mark-connection chain=forward comment=private-lokal dst-address-list=private-lokal new-connection-mark=private-lokal passthrough=yes \
- src-address-list=private-lokal
- add action=mark-connection chain=postrouting comment=private-lokal dst-address-list=private-lokal new-connection-mark=private-lokal passthrough=yes \
- src-address-list=private-lokal
- add action=mark-connection chain=output comment=private-lokal dst-address-list=private-lokal new-connection-mark=private-lokal passthrough=yes \
- src-address-list=private-lokal
- add action=mark-packet chain=input comment=private-lokal connection-mark=private-lokal new-packet-mark=private-lokal passthrough=no
- add action=mark-packet chain=prerouting comment=private-lokal connection-mark=private-lokal new-packet-mark=private-lokal passthrough=no
- add action=mark-packet chain=forward comment=private-lokal connection-mark=private-lokal new-packet-mark=private-lokal passthrough=no
- add action=mark-packet chain=postrouting comment=private-lokal connection-mark=private-lokal new-packet-mark=private-lokal passthrough=no
- add action=mark-packet chain=output comment=private-lokal connection-mark=private-lokal new-packet-mark=private-lokal passthrough=no
- add action=mark-connection chain=prerouting comment=vip new-connection-mark=vip passthrough=yes protocol=icmp
- add action=mark-connection chain=prerouting comment=vip new-connection-mark=vip passthrough=yes port=53,5353,123 protocol=tcp
- add action=mark-connection chain=prerouting comment=vip new-connection-mark=vip passthrough=yes port=53,5353,123 protocol=udp
- add action=mark-packet chain=prerouting comment=vip connection-mark=vip new-packet-mark=vip passthrough=no
- add action=jump chain=prerouting connection-rate=0-384k jump-target=jump1 port=!21,22,23,80,81,88,5050,843,443,182,282,8777,1935,8000-8081 protocol=tcp
- add action=jump chain=prerouting connection-rate=0-384k jump-target=jump1 port=!21,22,23,80,81,88,5050,843,443,182,282,8777,1935,8000-8081 protocol=udp
- add action=mark-connection chain=jump1 comment=games connection-rate=0-384k new-connection-mark=games passthrough=yes port=!53,5353,5938,8291,12671-12675,123 \
- protocol=tcp
- add action=mark-connection chain=jump1 comment=games connection-rate=0-384k new-connection-mark=games passthrough=yes port=!53,5353,5938,8291,12671-12675,123 \
- protocol=udp
- add action=return chain=jump1
- add action=mark-packet chain=prerouting comment=games connection-mark=games new-packet-mark=games passthrough=no
- add action=mark-connection chain=prerouting comment=high connection-bytes=100000001-0 new-connection-mark=high passthrough=yes
- add action=mark-packet chain=prerouting comment=high connection-mark=high new-packet-mark=high passthrough=no
- add action=mark-connection chain=prerouting comment=midle connection-bytes=10000001-100000000 new-connection-mark=midle passthrough=yes
- add action=mark-packet chain=prerouting connection-mark=midle new-packet-mark=midle passthrough=no
- add action=mark-connection chain=prerouting comment=low connection-bytes=3000001-10000000 new-connection-mark=low passthrough=yes
- add action=mark-packet chain=prerouting comment=low connection-mark=low new-packet-mark=low passthrough=no
- add action=mark-connection chain=prerouting comment=lower connection-bytes=1000001-3000000 new-connection-mark=lower passthrough=yes
- add action=mark-packet chain=prerouting comment=lower connection-mark=lower new-packet-mark=lower passthrough=no
- add action=mark-connection chain=prerouting comment=lowest connection-bytes=0-1000000 new-connection-mark=lowest passthrough=yes
- add action=mark-packet chain=prerouting comment=lowest connection-mark=lowest new-packet-mark=lowest passthrough=no
- add action=mark-connection chain=prerouting comment=unknown new-connection-mark=unknown passthrough=yes
- add action=mark-packet chain=prerouting comment=unknown connection-mark=unknown new-packet-mark=unknown passthrough=no
- #queue tree
- /queue tree
- add max-limit=100M name=A.DOWN parent=global queue=default
- add limit-at=64k max-limit=100M name=A.01.VIP packet-mark=vip parent=A.DOWN priority=1 queue=default
- add limit-at=2M max-limit=100M name=A.02.GAMES-ONLINE packet-mark=games parent=A.DOWN priority=2 queue=default
- add limit-at=8M max-limit=8M name=A.03.BYTES-TRAFIK parent=A.DOWN queue=default
- add limit-at=1M max-limit=8M name=A.1.LOWES packet-mark=lowest parent=A.03.BYTES-TRAFIK priority=4 queue=pcq-download-default
- add limit-at=1M max-limit=8M name=A.2.LOWER packet-mark=lower parent=A.03.BYTES-TRAFIK priority=5 queue=pcq-download-default
- add limit-at=1M max-limit=8M name=A.3.LOW packet-mark=low parent=A.03.BYTES-TRAFIK priority=6 queue=pcq-download-default
- add limit-at=1M max-limit=8M name=A.4.MIDLE packet-mark=midle parent=A.03.BYTES-TRAFIK priority=7 queue=pcq-download-default
- add limit-at=1M max-limit=8M name=A.5.HIGH packet-mark=high parent=A.03.BYTES-TRAFIK queue=pcq-download-default
- add limit-at=1M max-limit=8M name=A.6.UNKNOWN packet-mark=unknown parent=A.03.BYTES-TRAFIK queue=pcq-download-default
- add max-limit=100M name=B.UP parent=ether1 queue=default
- add limit-at=64k max-limit=100M name=B.01.VIP packet-mark=vip parent=B.UP priority=1 queue=default
- add limit-at=1M max-limit=100M name=B.02.GAMES-ONLINE packet-mark=games parent=B.UP priority=2 queue=default
- add limit-at=1M max-limit=1M name=B.03.BYTES-TRAFIK parent=B.UP queue=default
- add limit-at=100k max-limit=1M name=B.1.LOWES packet-mark=lowest parent=B.03.BYTES-TRAFIK priority=4 queue=pcq-upload-default
- add limit-at=100k max-limit=1M name=B.2.LOWER packet-mark=lower parent=B.03.BYTES-TRAFIK priority=5 queue=pcq-upload-default
- add limit-at=100k max-limit=1M name=B.3.LOW packet-mark=low parent=B.03.BYTES-TRAFIK priority=6 queue=pcq-upload-default
- add limit-at=100k max-limit=1M name=B.4.MIDLE packet-mark=midle parent=B.03.BYTES-TRAFIK priority=7 queue=pcq-upload-default
- add limit-at=100k max-limit=1M name=B.5.HIGH packet-mark=high parent=B.03.BYTES-TRAFIK queue=pcq-upload-default
- add limit-at=100k max-limit=1M name=B.6.UNKNOWN packet-mark=unknown parent=B.03.BYTES-TRAFIK queue=pcq-upload-default
Add Comment
Please, Sign In to add comment