Advertisement
punces

queue-tree

Jun 10th, 2017
1,321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.18 KB | None | 0 0
  1. # ip game online ambil di https://pastebin.com/raw/q0xFVpqb
  2.  
  3. /ip firewall address-list
  4. add address=10.0.0.0/8 list=private-lokal
  5. add address=172.16.0.0/12 list=private-lokal
  6. add address=192.168.0.0/16 list=private-lokal
  7.  
  8. /ip firewall layer7-protocol
  9. add name=youtube regexp="^.+(youtube.com|youtube.googleapis.com|youtube-nocookie.com|r[0-9]+---[a-z]+-+[a-z0-9-]+\\.googlevideo\\.com)"
  10.  
  11. /queue type
  12. add kind=pcq name=browsing-up pcq-classifier=src-address,src-port pcq-rate=512k
  13. add kind=pcq name=browsing-down pcq-classifier=dst-address,dst-port pcq-rate=2M
  14. add kind=pcq name=patch-up pcq-classifier=src-address,src-port pcq-rate=256k
  15. add kind=pcq name=patch-down pcq-classifier=dst-address,dst-port pcq-rate=2M
  16. add kind=pcq name=youtube-up pcq-classifier=src-address,src-port pcq-rate=256k
  17. add kind=pcq name=youtube-down pcq-classifier=dst-address,dst-port pcq-rate=1M
  18. add kind=pcq name=streaming-up pcq-classifier=src-address,src-port pcq-rate=128k
  19. add kind=pcq name=conbyte-up pcq-classifier=src-address,src-port pcq-rate=256k
  20. add kind=pcq name=unknown-up pcq-classifier=src-address,src-port pcq-rate=32k
  21. add kind=pcq name=streaming-down pcq-classifier=dst-address,dst-port pcq-rate=512k
  22. add kind=pcq name=conbyte-down pcq-classifier=dst-address pcq-rate=1M
  23. add kind=pcq name=unknown-down pcq-classifier=dst-address,dst-port pcq-rate=128k
  24.  
  25. /ip firewall mangle
  26. add action=accept chain=input dst-address-list=private-lokal src-address-list=private-lokal
  27. add action=accept chain=prerouting dst-address-list=private-lokal src-address-list=private-lokal
  28. add action=accept chain=forward dst-address-list=private-lokal src-address-list=private-lokal
  29. add action=accept chain=postrouting dst-address-list=private-lokal src-address-list=private-lokal
  30. add action=accept chain=output dst-address-list=private-lokal src-address-list=private-lokal
  31. add action=jump chain=input in-interface=pppoe-out1 jump-target=qos
  32. add action=jump chain=prerouting in-interface=pppoe-out1 jump-target=qos
  33. add action=jump chain=forward in-interface=pppoe-out1 jump-target=qos
  34. add action=jump chain=forward jump-target=qos out-interface=pppoe-out1
  35. add action=jump chain=postrouting jump-target=qos out-interface=pppoe-out1
  36. add action=jump chain=output jump-target=qos out-interface=pppoe-out1
  37. add action=mark-packet chain=qos comment=vip new-packet-mark=vip passthrough=no port=53,5353,8291 protocol=tcp
  38. add action=mark-packet chain=qos comment=vip new-packet-mark=vip passthrough=no port=53,5353,8291 protocol=udp
  39. add action=mark-packet chain=qos comment=vip new-packet-mark=vip passthrough=no protocol=igmp
  40. add action=mark-packet chain=qos comment=vip new-packet-mark=vip passthrough=no protocol=icmp
  41. add action=mark-packet chain=qos comment=port new-packet-mark=port passthrough=no port=21,22,2222,5938,8729,2001,2002,2003 protocol=tcp
  42. add action=mark-packet chain=qos comment=port new-packet-mark=port passthrough=no port=21,22,2222,5938,8729,2001,2002,2003 protocol=udp
  43. add action=mark-packet chain=qos comment=patch-game dst-address-list=games new-packet-mark=patch-game passthrough=no port=12671-12675 protocol=tcp
  44. add action=mark-packet chain=qos comment=patch-game new-packet-mark=patch-game passthrough=no port=12671-12675 protocol=tcp src-address-list=games
  45. add action=mark-packet chain=qos comment=patch-game dst-address-list=games new-packet-mark=patch-game passthrough=no port=12671-12675 protocol=udp
  46. add action=mark-packet chain=qos comment=patch-game new-packet-mark=patch-game passthrough=no port=12671-12675 protocol=udp src-address-list=games
  47. add action=mark-packet chain=qos comment=patch-game dst-address-list=games new-packet-mark=patch-game passthrough=no port=21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081 protocol=tcp
  48. add action=mark-packet chain=qos comment=patch-game new-packet-mark=patch-game passthrough=no port=21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081 protocol=tcp src-address-list=games
  49. add action=mark-packet chain=qos comment=patch-game dst-address-list=games new-packet-mark=patch-game passthrough=no port=21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081 protocol=udp
  50. add action=mark-packet chain=qos comment=patch-game new-packet-mark=patch-game passthrough=no port=21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081 protocol=udp src-address-list=games
  51. add action=mark-packet chain=qos comment=games dst-address-list=games new-packet-mark=games passthrough=no port=!21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081 protocol=tcp
  52. add action=mark-packet chain=qos comment=games new-packet-mark=games passthrough=no port=!21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081 protocol=tcp src-address-list=games
  53. add action=mark-packet chain=qos comment=games dst-address-list=games new-packet-mark=games passthrough=no port=!21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081 protocol=udp
  54. add action=mark-packet chain=qos comment=games new-packet-mark=games passthrough=no port=!21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081 protocol=udp src-address-list=games
  55. add action=mark-packet chain=qos comment=youtube layer7-protocol=youtube new-packet-mark=youtube passthrough=no
  56. add action=mark-packet chain=qos comment=streaming new-packet-mark=streaming passthrough=no port=182,1935,8777 protocol=tcp
  57. add action=mark-packet chain=qos comment=streaming new-packet-mark=streaming passthrough=no port=182,1935,8777 protocol=udp
  58. add action=mark-packet chain=qos comment=con-byte connection-bytes=1000000-0 new-packet-mark=con-byte passthrough=no
  59. add action=mark-packet chain=qos comment=browsing new-packet-mark=browsing passthrough=no port=80,443,5050,8080 protocol=tcp
  60. add action=mark-packet chain=qos comment=browsing new-packet-mark=browsing passthrough=no port=80,443,5050,8080 protocol=udp
  61. add action=mark-packet chain=qos comment=unknown new-packet-mark=unknown passthrough=no
  62. add action=return chain=qos
  63.  
  64.  
  65. /queue tree
  66. add max-limit=100M name=I.QOS parent=global queue=default
  67. add limit-at=64k max-limit=100M name=I.01.VIP packet-mark=vip parent=I.QOS priority=1 queue=default
  68. add limit-at=5M max-limit=100M name=I.02.GAMES-ONLINE packet-mark=games parent=I.QOS priority=2 queue=default
  69. add limit-at=15M max-limit=100M name=I.03.BUKAN-GAMES parent=I.QOS queue=default
  70. add limit-at=1M max-limit=100M name=I.1.PATCH-GAMES packet-mark=patch-game parent=I.03.BUKAN-GAMES priority=4 queue=patch-down
  71. add limit-at=1M max-limit=100M name=I.2.BROWSING packet-mark=browsing parent=I.03.BUKAN-GAMES priority=5 queue=browsing-down
  72. add limit-at=1M max-limit=100M name=I.3.PORT-SPESIAL packet-mark=port parent=I.03.BUKAN-GAMES priority=5 queue=default
  73. add limit-at=1M max-limit=100M name=I.4.YOUTUBE packet-mark=youtube parent=I.03.BUKAN-GAMES priority=6 queue=youtube-down
  74. add limit-at=1M max-limit=100M name=I.5.STREAMING packet-mark=streaming parent=I.03.BUKAN-GAMES priority=7 queue=streaming-down
  75. add limit-at=1M max-limit=100M name=I.6.DOWNLOAD packet-mark=con-byte parent=I.03.BUKAN-GAMES priority=7 queue=conbyte-down
  76. add limit-at=1M max-limit=100M name=I.7.UNKNOWN packet-mark=unknown parent=I.03.BUKAN-GAMES queue=unknown-down
  77. add max-limit=100M name=O.QOS parent=pppoe-out1 queue=default
  78. add limit-at=64k max-limit=100M name=O.01.VIP packet-mark=vip parent=O.QOS priority=1 queue=default
  79. add limit-at=1M max-limit=100M name=O.02.GAMES-ONLINE packet-mark=games parent=O.QOS priority=2 queue=default
  80. add limit-at=2M max-limit=100M name=O.03.BUKAN-GAMES parent=O.QOS queue=default
  81. add limit-at=256k max-limit=100M name=O.1.PATCH-GAMES packet-mark=patch-game parent=O.03.BUKAN-GAMES priority=4 queue=patch-up
  82. add limit-at=256k max-limit=100M name=O.2.BROWSING packet-mark=browsing parent=O.03.BUKAN-GAMES priority=5 queue=browsing-up
  83. add limit-at=256k max-limit=100M name=O.3.PORT-SPESIAL packet-mark=port parent=O.03.BUKAN-GAMES priority=5 queue=default
  84. add limit-at=256k max-limit=100M name=O.4.YOUTUBE packet-mark=youtube parent=O.03.BUKAN-GAMES priority=6 queue=youtube-up
  85. add limit-at=256k max-limit=100M name=O.5.STREAMING packet-mark=streaming parent=O.03.BUKAN-GAMES priority=7 queue=streaming-up
  86. add limit-at=256k max-limit=100M name=O.6.DOWNLOAD packet-mark=con-byte parent=O.03.BUKAN-GAMES priority=7 queue=conbyte-up
  87. add limit-at=128k max-limit=100M name=O.7.UNKNOWN packet-mark=unknown parent=O.03.BUKAN-GAMES queue=unknown-up
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement