Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #asumsi ether1 = WAN
- # ip games online copas di https://pastebin.com/UXupwxrd
- /ip firewall layer7-protocol
- add name=streaming regexp="^.+(mp4|3gp|flv|mkv)"
- add name=youtube regexp="r[0-9]+---[a-z]+-+[a-z0-9-]+\\.googlevideo\\.com"
- /ip firewall address-list
- add address=10.0.0.0/8 list=private-lokal
- add address=172.16.0.0/12 list=private-lokal
- add address=192.168.0.0/16 list=private-lokal
- /ip firewall mangle
- add action=accept chain=input dst-address-list=private-lokal src-address-list=private-lokal
- add action=accept chain=prerouting dst-address-list=private-lokal src-address-list=private-lokal
- add action=accept chain=forward dst-address-list=private-lokal src-address-list=private-lokal
- add action=accept chain=postrouting dst-address-list=private-lokal src-address-list=private-lokal
- add action=accept chain=output dst-address-list=private-lokal src-address-list=private-lokal
- add action=jump chain=input comment=qos-down in-interface=ether1 jump-target=qos-down
- add action=jump chain=prerouting comment=qos-down in-interface=ether1 jump-target=qos-down
- add action=jump chain=forward comment=qos-down in-interface=ether1 jump-target=qos-down
- add action=mark-packet chain=qos-down comment=vip-down new-packet-mark=vip-down passthrough=no port=53,5353,8291 protocol=tcp
- add action=mark-packet chain=qos-down comment=vip-down new-packet-mark=vip-down passthrough=no port=53,5353,8291 protocol=udp
- add action=mark-packet chain=qos-down comment=vip-down new-packet-mark=vip-down passthrough=no protocol=igmp
- add action=mark-packet chain=qos-down comment=vip-down new-packet-mark=vip-down passthrough=no protocol=icmp
- add action=mark-packet chain=qos-down comment=port-down new-packet-mark=port-down passthrough=no port=21,22,2222,5938,8729,2001,2002,2003,8033,8123 protocol=tcp
- add action=mark-packet chain=qos-down comment=port-down new-packet-mark=port-down passthrough=no port=21,22,2222,5938,8729,2001,2002,2003,8033,8123 protocol=udp
- add action=mark-packet chain=qos-down comment=patch-game-down connection-rate=512k-100M new-packet-mark=patch-game-down passthrough=no src-address-list=games
- add action=mark-packet chain=qos-down comment=streaming-down layer7-protocol=streaming new-packet-mark=streaming-down passthrough=no
- add action=mark-packet chain=qos-down comment=streaming-down new-packet-mark=streaming-down passthrough=no port=182,1935,8777 protocol=tcp
- add action=mark-packet chain=qos-down comment=streaming-down new-packet-mark=streaming-down passthrough=no port=182,1935,8777 protocol=udp
- add action=mark-packet chain=qos-down comment=youtube-down layer7-protocol=youtube new-packet-mark=youtube-down passthrough=no
- add action=mark-packet chain=qos-down comment=con-byte-down connection-rate=512k-100M new-packet-mark=con-byte-down passthrough=no
- add action=mark-packet chain=qos-down comment=games-down new-packet-mark=games-down passthrough=no port=!21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081 protocol=\
- tcp src-address-list=games
- add action=mark-packet chain=qos-down comment=games-down new-packet-mark=games-down passthrough=no port=!21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081 protocol=\
- udp src-address-list=games
- add action=mark-packet chain=qos-down comment=browsing-down new-packet-mark=browsing-down passthrough=no port=80,443,5050,8080 protocol=tcp
- add action=mark-packet chain=qos-down comment=browsing-down new-packet-mark=browsing-down passthrough=no port=80,443,5050,8080 protocol=udp
- add action=mark-packet chain=qos-down comment=unknown-down new-packet-mark=unknown-down passthrough=no
- add action=return chain=qos-down comment=qos-down
- add action=jump chain=forward comment=qos-up jump-target=qos-up out-interface=ether1
- add action=jump chain=postrouting comment=qos-up jump-target=qos-up out-interface=ether1
- add action=jump chain=output comment=qos-up jump-target=qos-up out-interface=ether1
- add action=mark-packet chain=qos-up comment=vip-up new-packet-mark=vip-up passthrough=no port=53,5353,8291 protocol=tcp
- add action=mark-packet chain=qos-up comment=vip-up new-packet-mark=vip-up passthrough=no port=53,5353,8291 protocol=udp
- add action=mark-packet chain=qos-up comment=vip-up new-packet-mark=vip-up passthrough=no protocol=igmp
- add action=mark-packet chain=qos-up comment=vip-up new-packet-mark=vip-up passthrough=no protocol=icmp
- add action=mark-packet chain=qos-up comment=port-up new-packet-mark=port-up passthrough=no port=21,22,2222,5938,8729,2001,2002,2003,8033,8123 protocol=tcp
- add action=mark-packet chain=qos-up comment=port-up new-packet-mark=port-up passthrough=no port=21,22,2222,5938,8729,2001,2002,2003,8033,8123 protocol=udp
- add action=mark-packet chain=qos-up comment=patch-game-up connection-rate=512k-100M dst-address-list=games new-packet-mark=patch-game-up passthrough=no
- add action=mark-packet chain=qos-up comment=streaming-up layer7-protocol=streaming new-packet-mark=streaming-up passthrough=no
- add action=mark-packet chain=qos-up comment=streaming-up new-packet-mark=streaming-up passthrough=no port=182,1935,8777 protocol=tcp
- add action=mark-packet chain=qos-up comment=streaming-up new-packet-mark=streaming-up passthrough=no port=182,1935,8777 protocol=udp
- add action=mark-packet chain=qos-up comment=youtube-up layer7-protocol=youtube new-packet-mark=youtube-up passthrough=no
- add action=mark-packet chain=qos-up comment=con-byte-up connection-rate=512k-100M new-packet-mark=con-byte-up passthrough=no
- add action=mark-packet chain=qos-up comment=games-up dst-address-list=games new-packet-mark=games-up passthrough=no port=\
- !21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081 protocol=tcp
- add action=mark-packet chain=qos-up comment=games-up dst-address-list=games new-packet-mark=games-up passthrough=no port=\
- !21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081 protocol=udp
- add action=mark-packet chain=qos-up comment=browsing-up new-packet-mark=browsing-up passthrough=no port=80,443,5050,8080 protocol=tcp
- add action=mark-packet chain=qos-up comment=browsing-up new-packet-mark=browsing-up passthrough=no port=80,443,5050,8080 protocol=udp
- add action=mark-packet chain=qos-up comment=unknown-up new-packet-mark=unknown-up passthrough=no
- add action=return chain=qos-up comment=qos-up
- /queue tree
- add max-limit=1G name=QUALITY-OF-SERVICES parent=global queue=default
- add max-limit=1G name=01.INCOMING parent=QUALITY-OF-SERVICES queue=default
- add limit-at=64k max-limit=1G name=I.01.VIP packet-mark=vip-down parent=01.INCOMING priority=1 queue=default
- add limit-at=5M max-limit=1G name=I.02.GAMES-ONLINE packet-mark=games-down parent=01.INCOMING priority=3 queue=default
- add limit-at=50M max-limit=1G name=I.03.BUKAN-GAMES parent=01.INCOMING queue=default
- add limit-at=1M max-limit=1G name=I.04.BROWSING packet-mark=browsing-down parent=I.03.BUKAN-GAMES priority=4 queue=pcq-download-default
- add limit-at=5M max-limit=1G name=I.05.PATCH-GAMES packet-mark=patch-game-down parent=I.03.BUKAN-GAMES priority=4 queue=pcq-download-default
- add limit-at=1M max-limit=1G name=I.06.PORT-SPESIAL packet-mark=port-down parent=I.03.BUKAN-GAMES priority=4 queue=pcq-download-default
- add limit-at=1M max-limit=1G name=I.07.YOUTUBE packet-mark=youtube-down parent=I.03.BUKAN-GAMES priority=5 queue=pcq-download-default
- add limit-at=1M max-limit=1G name=I.08.STREAMING packet-mark=streaming-down parent=I.03.BUKAN-GAMES priority=6 queue=pcq-download-default
- add limit-at=1M max-limit=1G name=I.09.DOWNLOAD packet-mark=con-byte-down parent=I.03.BUKAN-GAMES priority=7 queue=pcq-download-default
- add limit-at=1M max-limit=1G name=I.10.UNKNOWN packet-mark=unknown-down parent=I.03.BUKAN-GAMES queue=pcq-download-default
- add max-limit=1G name=02.OUTGOING parent=QUALITY-OF-SERVICES queue=default
- add limit-at=64k max-limit=1G name=O.01.VIP packet-mark=vip-up parent=02.OUTGOING priority=1 queue=default
- add limit-at=1M max-limit=1G name=O.02.GAMES-ONLINE packet-mark=games-up parent=02.OUTGOING priority=3 queue=default
- add limit-at=20M max-limit=1G name=O.03.BUKAN-GAMES parent=02.OUTGOING queue=default
- add limit-at=1M max-limit=1G name=O.04.BROWSING packet-mark=browsing-up parent=O.03.BUKAN-GAMES priority=4 queue=pcq-upload-default
- add limit-at=1M max-limit=1G name=O.05.PATCH-GAMES packet-mark=patch-game-up parent=O.03.BUKAN-GAMES priority=4 queue=pcq-upload-default
- add limit-at=1M max-limit=1G name=O.06.PORT-SPESIAL packet-mark=port-up parent=O.03.BUKAN-GAMES priority=4 queue=pcq-upload-default
- add limit-at=1M max-limit=1G name=O.07.YOUTUBE packet-mark=youtube-up parent=O.03.BUKAN-GAMES priority=5 queue=pcq-upload-default
- add limit-at=1M max-limit=1G name=O.08.STREAMING packet-mark=streaming-up parent=O.03.BUKAN-GAMES priority=6 queue=pcq-upload-default
- add limit-at=1M max-limit=1G name=O.09.UPLOAD packet-mark=con-byte-up parent=O.03.BUKAN-GAMES priority=7 queue=pcq-upload-default
- add limit-at=1M max-limit=1G name=O.10.UNKNOWN packet-mark=unknown-up parent=O.03.BUKAN-GAMES queue=pcq-upload-default
Add Comment
Please, Sign In to add comment