lspci

Manage BW

Oct 22nd, 2017
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.78 KB | None | 0 0
  1. /ip firewall address-list
  2. add address=10.0.0.0/8 list=private-lokal
  3. add address=172.16.0.0/12 list=private-lokal
  4. add address=192.168.0.0/16 list=private-lokal
  5.  
  6. #pastikan ros mikrotik terdapat fitur "raw"
  7. /ip firewall raw
  8. add action=drop chain=prerouting dst-port=53,5353 protocol=tcp src-address-list=!private-lokal
  9. add action=drop chain=prerouting dst-port=53,5353 protocol=udp src-address-list=!private-lokal
  10. add action=drop chain=prerouting dst-port=443 protocol=udp
  11. add action=add-dst-to-address-list address-list=googlevideoDOTcom address-list-timeout=0s chain=prerouting content=.youtube.com dst-address-list=!private-lokal \
  12. src-address-list=private-lokal
  13. add action=add-dst-to-address-list address-list=googlevideoDOTcom address-list-timeout=0s chain=prerouting content=.googlevideo.com dst-address-list=!private-lokal \
  14. src-address-list=private-lokal
  15. add action=add-dst-to-address-list address-list=sosmed address-list-timeout=0s chain=prerouting content=.facebook dst-address-list=!private-lokal src-address-list=\
  16. private-lokal
  17. add action=add-dst-to-address-list address-list=sosmed address-list-timeout=0s chain=prerouting content=.fbcdn.net dst-address-list=!private-lokal src-address-list=\
  18. private-lokal
  19. add action=add-dst-to-address-list address-list=sosmed address-list-timeout=0s chain=prerouting content=.instagram dst-address-list=!private-lokal src-address-list=\
  20. private-lokal
  21. add action=add-dst-to-address-list address-list=sosmed address-list-timeout=0s chain=prerouting content=.twitter dst-address-list=!private-lokal src-address-list=\
  22. private-lokal
  23. add action=add-dst-to-address-list address-list=sosmed address-list-timeout=0s chain=prerouting content=.twimg dst-address-list=!private-lokal src-address-list=\
  24. private-lokal
  25. add action=add-dst-to-address-list address-list=sosmed address-list-timeout=0s chain=prerouting content=.path.com dst-address-list=!private-lokal src-address-list=\
  26. private-lokal
  27. add action=add-dst-to-address-list address-list=sosmed address-list-timeout=0s chain=prerouting content=.telegram dst-address-list=!private-lokal src-address-list=\
  28. private-lokal
  29. add action=add-dst-to-address-list address-list=sosmed address-list-timeout=0s chain=prerouting content=.whatsapp dst-address-list=!private-lokal src-address-list=\
  30. private-lokal
  31. add action=add-dst-to-address-list address-list=streaming address-list-timeout=0s chain=prerouting content=.mp4 dst-address-list=!private-lokal src-address-list=\
  32. private-lokal
  33. add action=add-dst-to-address-list address-list=streaming address-list-timeout=0s chain=prerouting content=.flv dst-address-list=!private-lokal src-address-list=\
  34. private-lokal
  35. add action=add-dst-to-address-list address-list=streaming address-list-timeout=0s chain=prerouting content=.mkv dst-address-list=!private-lokal src-address-list=\
  36. private-lokal
  37. add action=add-dst-to-address-list address-list=streaming address-list-timeout=0s chain=prerouting content=.3gp dst-address-list=!private-lokal src-address-list=\
  38. private-lokal
  39. add action=add-dst-to-address-list address-list=streaming address-list-timeout=0s chain=prerouting content=.ts dst-address-list=!private-lokal src-address-list=\
  40. private-lokal
  41. add action=add-dst-to-address-list address-list=streaming address-list-timeout=0s chain=prerouting content=.m3u dst-address-list=!private-lokal src-address-list=\
  42. private-lokal
  43.  
  44.  
  45. #mangle
  46. /ip firewall mangle
  47. add action=accept chain=input dst-address-list=private-lokal src-address-list=private-lokal
  48. add action=accept chain=prerouting dst-address-list=private-lokal src-address-list=private-lokal
  49. add action=accept chain=forward dst-address-list=private-lokal src-address-list=private-lokal
  50. add action=accept chain=postrouting dst-address-list=private-lokal src-address-list=private-lokal
  51. add action=accept chain=output dst-address-list=private-lokal src-address-list=private-lokal
  52.  
  53. add action=add-dst-to-address-list address-list=games address-list-timeout=0s chain=prerouting comment=games connection-rate=0-255999 dst-address-list=!private-lokal \
  54. dst-port=!21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081,282 protocol=tcp src-address-list=private-lokal
  55. add action=add-dst-to-address-list address-list=games address-list-timeout=0s chain=prerouting comment=games connection-rate=0-255999 dst-address-list=!private-lokal \
  56. dst-port=!21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081,282 protocol=udp src-address-list=private-lokal
  57. add action=jump chain=forward dst-address-list=private-lokal jump-target=qos-in src-address-list=!private-lokal
  58. add action=jump chain=prerouting dst-address-list=private-lokal jump-target=qos-in src-address-list=!private-lokal
  59. add action=mark-packet chain=qos-in comment=vip-in new-packet-mark=vip-in passthrough=no protocol=icmp
  60. add action=mark-packet chain=qos-in comment=vip-in new-packet-mark=vip-in passthrough=no protocol=igmp
  61. add action=mark-packet chain=qos-in comment=vip-in new-packet-mark=vip-in passthrough=no port=53,5353 protocol=tcp
  62. add action=mark-packet chain=qos-in comment=vip-in new-packet-mark=vip-in passthrough=no port=53,5353 protocol=udp
  63. add action=mark-packet chain=qos-in comment=remote-in new-packet-mark=remote-in passthrough=no port=21,22,23,8291,5938,5900-5911,1701-1723,1914 protocol=tcp
  64. add action=mark-packet chain=qos-in comment=remote-in new-packet-mark=remote-in passthrough=no port=21,22,23,8291,5938,5900-5911,1701-1723,1914 protocol=udp
  65. add action=mark-packet chain=qos-in comment=patch-in new-packet-mark=patch-in passthrough=no port=12671-12675 protocol=tcp
  66. add action=mark-packet chain=qos-in comment=patch-in new-packet-mark=patch-in passthrough=no port=12671-12675 protocol=udp
  67. add action=mark-packet chain=qos-in comment=games-in new-packet-mark=games-in passthrough=no port=!21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081,282 protocol=tcp \
  68. src-address-list=games
  69. add action=mark-packet chain=qos-in comment=games-in new-packet-mark=games-in passthrough=no port=!21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081,282 protocol=udp \
  70. src-address-list=games
  71. add action=mark-packet chain=qos-in comment=patch-in new-packet-mark=patch-in passthrough=no src-address-list=games
  72. add action=mark-packet chain=qos-in comment=googlevideo new-packet-mark=googlevideo-in passthrough=no src-address-list=googlevideoDOTcom
  73. add action=mark-packet chain=qos-in comment=stream-in new-packet-mark=stream-in passthrough=no port=182,282,8777,1935 protocol=tcp
  74. add action=mark-packet chain=qos-in comment=stream-in new-packet-mark=stream-in passthrough=no port=182,282,8777,1935 protocol=udp
  75. add action=mark-packet chain=qos-in comment=stream-in new-packet-mark=stream-in passthrough=no src-address-list=streaming
  76. add action=mark-packet chain=qos-in comment=rate-in connection-rate=512k-100M new-packet-mark=rate-in passthrough=no
  77. add action=mark-packet chain=qos-in comment=sosmed new-packet-mark=sosmed-in passthrough=no port=80,81,88,443,5050-5060,8000-8081,843 protocol=tcp src-address-list=sosmed
  78. add action=mark-packet chain=qos-in comment=sosmed new-packet-mark=sosmed-in passthrough=no port=80,81,88,443,5050-5060,8000-8081,843 protocol=udp src-address-list=sosmed
  79. add action=mark-packet chain=qos-in comment=browsing-in new-packet-mark=browsing-in passthrough=no port=80,81,88,443,5050-5060,8000-8081,843 protocol=tcp
  80. add action=mark-packet chain=qos-in comment=browsing-in new-packet-mark=browsing-in passthrough=no port=80,81,88,443,5050-5060,8000-8081,843 protocol=udp
  81. add action=mark-packet chain=qos-in comment=unknown-in new-packet-mark=unknown-in passthrough=no
  82. add action=return chain=qos-in
  83. add action=jump chain=forward dst-address-list=!private-lokal jump-target=qos-out src-address-list=private-lokal
  84. add action=jump chain=prerouting dst-address-list=!private-lokal jump-target=qos-out src-address-list=private-lokal
  85. add action=mark-packet chain=qos-out comment=vip-out new-packet-mark=vip-out passthrough=no protocol=icmp
  86. add action=mark-packet chain=qos-out comment=vip-out new-packet-mark=vip-out passthrough=no protocol=igmp
  87. add action=mark-packet chain=qos-out comment=vip-out new-packet-mark=vip-out passthrough=no port=53,5353 protocol=tcp
  88. add action=mark-packet chain=qos-out comment=vip-out new-packet-mark=vip-out passthrough=no port=53,5353 protocol=udp
  89. add action=mark-packet chain=qos-out comment=remote-out new-packet-mark=remote-out passthrough=no port=21,22,23,8291,5938,5900-5911,1701-1723,1914 protocol=tcp
  90. add action=mark-packet chain=qos-out comment=remote-out new-packet-mark=remote-out passthrough=no port=21,22,23,8291,5938,5900-5911,1701-1723,1914 protocol=udp
  91. add action=mark-packet chain=qos-out comment=patch-out new-packet-mark=patch-out passthrough=no port=12671-12675 protocol=tcp
  92. add action=mark-packet chain=qos-out comment=patch-out new-packet-mark=patch-out passthrough=no port=12671-12675 protocol=udp
  93. add action=mark-packet chain=qos-out comment=games-out dst-address-list=games new-packet-mark=games-out passthrough=no port=\
  94. !21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081,282 protocol=tcp
  95. add action=mark-packet chain=qos-out comment=games-out dst-address-list=games new-packet-mark=games-out passthrough=no port=\
  96. !21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081,282 protocol=udp
  97. add action=mark-packet chain=qos-out comment=patch-out dst-address-list=games new-packet-mark=patch-out passthrough=no
  98. add action=mark-packet chain=qos-out comment=googlevideo dst-address-list=googlevideoDOTcom new-packet-mark=googlevideo-out passthrough=no
  99. add action=mark-packet chain=qos-out comment=stream-out new-packet-mark=stream-out passthrough=no port=182,282,8777,1935 protocol=tcp
  100. add action=mark-packet chain=qos-out comment=stream-out new-packet-mark=stream-out passthrough=no port=182,282,8777,1935 protocol=udp
  101. add action=mark-packet chain=qos-out comment=stream-out dst-address-list=streaming new-packet-mark=stream-out passthrough=no
  102. add action=mark-packet chain=qos-out comment=rate-out connection-rate=512k-100M new-packet-mark=rate-out passthrough=no
  103. add action=mark-packet chain=qos-out comment=sosmed dst-address-list=sosmed new-packet-mark=sosmed-out passthrough=no port=80,81,88,443,5050-5060,8000-8081,843 protocol=\
  104. tcp
  105. add action=mark-packet chain=qos-out comment=sosmed dst-address-list=sosmed new-packet-mark=sosmed-out passthrough=no port=80,81,88,443,5050-5060,8000-8081,843 protocol=\
  106. udp
  107. add action=mark-packet chain=qos-out comment=browsing-out new-packet-mark=browsing-out passthrough=no port=80,81,88,443,5050-5060,8000-8081,843 protocol=tcp
  108. add action=mark-packet chain=qos-out comment=browsing-out new-packet-mark=browsing-out passthrough=no port=80,81,88,443,5050-5060,8000-8081,843 protocol=udp
  109. add action=mark-packet chain=qos-out comment=unknown-out new-packet-mark=unknown-out passthrough=no
  110. add action=return chain=qos-out
  111.  
  112. #queue tree indihome 10mpbs
  113. /queue tree
  114. add max-limit=100M name=QUALITY-OF-SERVICE parent=global queue=default
  115. add max-limit=100M name=INCOMING parent=QUALITY-OF-SERVICE queue=default
  116. add limit-at=64k max-limit=100M name=I.01.VIP packet-mark=vip-in parent=INCOMING priority=1 queue=default
  117. add limit-at=1M max-limit=100M name=I.02.GAMES-ONLINE packet-mark=games-in parent=INCOMING priority=3 queue=default
  118. add limit-at=2M max-limit=10M name=I.999.NORMAL-PRIORITY parent=INCOMING queue=default
  119. add limit-at=100k max-limit=10M name=I.03.PATCH-GAMES packet-mark=patch-in parent=I.999.NORMAL-PRIORITY priority=5 queue=pcq-download-default
  120. add limit-at=100k max-limit=10M name=I.04.REMOTE packet-mark=remote-in parent=I.999.NORMAL-PRIORITY priority=5 queue=pcq-download-default
  121. add limit-at=100k max-limit=10M name=I.05.BROWSING packet-mark=browsing-in parent=I.999.NORMAL-PRIORITY priority=5 queue=pcq-download-default
  122. add limit-at=100k max-limit=10M name=I.06.SOSMED packet-mark=sosmed-in parent=I.999.NORMAL-PRIORITY priority=5 queue=pcq-download-default
  123. add limit-at=100k max-limit=10M name=I.07.GOOGLE-VIDEO packet-mark=googlevideo-in parent=I.999.NORMAL-PRIORITY priority=6 queue=pcq-download-default
  124. add limit-at=100k max-limit=10M name=I.08.STREAMING packet-mark=stream-in parent=I.999.NORMAL-PRIORITY priority=6 queue=pcq-download-default
  125. add limit-at=100k max-limit=10M name=I.09.CON-RATE packet-mark=rate-in parent=I.999.NORMAL-PRIORITY priority=7 queue=pcq-download-default
  126. add limit-at=100k max-limit=10M name=I.10.UNKNOWN packet-mark=unknown-in parent=I.999.NORMAL-PRIORITY queue=pcq-download-default
  127. add max-limit=100M name=OUTGOING parent=QUALITY-OF-SERVICE queue=default
  128. add limit-at=64k max-limit=100M name=O.01.VIP packet-mark=vip-out parent=OUTGOING priority=1 queue=default
  129. add limit-at=1M max-limit=100M name=O.02.GAMES-ONLINE packet-mark=games-out parent=OUTGOING priority=3 queue=default
  130. add limit-at=2M max-limit=3M name=O.999.NORMAL-PRIORITY parent=OUTGOING queue=default
  131. add limit-at=100k max-limit=3M name=O.03.PATCH-GAMES packet-mark=patch-out parent=O.999.NORMAL-PRIORITY priority=5 queue=pcq-upload-default
  132. add limit-at=100k max-limit=3M name=O.04.REMOTE packet-mark=remote-out parent=O.999.NORMAL-PRIORITY priority=5 queue=pcq-upload-default
  133. add limit-at=100k max-limit=3M name=O.05.BROWSING packet-mark=browsing-out parent=O.999.NORMAL-PRIORITY priority=5 queue=pcq-upload-default
  134. add limit-at=100k max-limit=3M name=O.06.SOSMED packet-mark=sosmed-out parent=O.999.NORMAL-PRIORITY priority=5 queue=pcq-upload-default
  135. add limit-at=100k max-limit=3M name=O.07.GOOGLE-VIDEO packet-mark=googlevideo-out parent=O.999.NORMAL-PRIORITY priority=6 queue=pcq-upload-default
  136. add limit-at=100k max-limit=3M name=O.08.STREAMING packet-mark=stream-out parent=O.999.NORMAL-PRIORITY priority=6 queue=pcq-upload-default
  137. add limit-at=100k max-limit=3M name=O.09.CON-RATE packet-mark=rate-out parent=O.999.NORMAL-PRIORITY priority=7 queue=pcq-upload-default
  138. add limit-at=100k max-limit=3M name=O.10.UNKNOWN packet-mark=unknown-out parent=O.999.NORMAL-PRIORITY queue=pcq-upload-default
Advertisement
Add Comment
Please, Sign In to add comment