sukriborneo

queu-tree-10mbps

Apr 30th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pastikan ip address mikrotik yang dipakai ada dalam range ip dibawah ini
  2. /ip firewall address-list
  3. add address=10.0.0.0/8 list=private-lokal
  4. add address=172.16.0.0/12 list=private-lokal
  5. add address=192.168.0.0/16 list=private-lokal
  6.  
  7. #WAN ether mikrotik = ether1
  8. #mangle
  9. /ip firewall mangle
  10. add action=accept chain=input dst-address-list=private-lokal src-address-list=private-lokal
  11. add action=accept chain=prerouting dst-address-list=private-lokal src-address-list=private-lokal
  12. add action=accept chain=forward dst-address-list=private-lokal src-address-list=private-lokal
  13. add action=accept chain=postrouting dst-address-list=private-lokal src-address-list=private-lokal
  14. add action=accept chain=output dst-address-list=private-lokal src-address-list=private-lokal
  15.  
  16. add action=jump chain=forward in-interface=ether1 jump-target=qos-in
  17. add action=mark-packet chain=qos-in comment=INvip new-packet-mark=INvip passthrough=no protocol=icmp
  18. add action=mark-packet chain=qos-in comment=INvip new-packet-mark=INvip passthrough=no protocol=igmp
  19. add action=mark-packet chain=qos-in comment=INvip new-packet-mark=INvip passthrough=no port=53,5353 protocol=tcp
  20. add action=mark-packet chain=qos-in comment=INvip new-packet-mark=INvip passthrough=no port=53,5353 protocol=udp
  21. add action=mark-packet chain=qos-in comment=IN1000001-1000000000 connection-rate=1000001-1G new-packet-mark=IN1000001-1000000000 passthrough=no
  22. add action=mark-packet chain=qos-in comment=IN512001-1000000 connection-rate=512001-1M new-packet-mark=IN512001-1000000 passthrough=no
  23. add action=mark-packet chain=qos-in comment=IN256001-512000 connection-rate=256001-512k new-packet-mark=IN256001-512000 passthrough=no
  24. add action=mark-packet chain=qos-in comment=IN128001-256000 connection-rate=128001-256k new-packet-mark=IN128001-256000 passthrough=no
  25. add action=mark-packet chain=qos-in comment=IN0-128000 connection-rate=0-128k new-packet-mark=IN0-128000 passthrough=no
  26. add action=mark-packet chain=qos-in comment=INunknown new-packet-mark=INunknown passthrough=no
  27. add action=return chain=qos-in
  28. add action=jump chain=forward jump-target=qos-out out-interface=ether1
  29. add action=mark-packet chain=qos-out comment=OUTvip new-packet-mark=OUTvip passthrough=no protocol=icmp
  30. add action=mark-packet chain=qos-out comment=OUTvip new-packet-mark=OUTvip passthrough=no protocol=igmp
  31. add action=mark-packet chain=qos-out comment=OUTvip new-packet-mark=OUTvip passthrough=no port=53,5353 protocol=tcp
  32. add action=mark-packet chain=qos-out comment=OUTvip new-packet-mark=OUTvip passthrough=no port=53,5353 protocol=udp
  33. add action=mark-packet chain=qos-out comment=OUT1000001-1000000000 connection-rate=1000001-1G new-packet-mark=OUT1000001-1000000000 passthrough=no
  34. add action=mark-packet chain=qos-out comment=OUT512001-1000000 connection-rate=512001-1M new-packet-mark=OUT512001-1000000 passthrough=no
  35. add action=mark-packet chain=qos-out comment=OUT256001-512000 connection-rate=256001-512k new-packet-mark=OUT256001-512000 passthrough=no
  36. add action=mark-packet chain=qos-out comment=OUT128001-256000 connection-rate=128001-256k new-packet-mark=OUT128001-256000 passthrough=no
  37. add action=mark-packet chain=qos-out comment=OUT0-128000 connection-rate=0-128k new-packet-mark=OUT0-128000 passthrough=no
  38. add action=mark-packet chain=qos-out comment=OUTunknown new-packet-mark=OUTunknown passthrough=no
  39. add action=return chain=qos-out
  40.  
  41. #queue tree indihome 10mpbs
  42. /queue tree
  43. add max-limit=100M name=QOUALITY-OF-SERVICE parent=global queue=default
  44. add max-limit=100M name=INCOMING parent=QOUALITY-OF-SERVICE queue=default
  45. add max-limit=10M name=I.PRIORITY parent=INCOMING queue=default
  46. add limit-at=64k max-limit=100M name=I.VIP packet-mark=INvip parent=INCOMING priority=1 queue=default
  47. add limit-at=1M max-limit=10M name=I.01 packet-mark=IN0-128000 parent=I.PRIORITY priority=3 queue=pcq-download-default
  48. add limit-at=1M max-limit=10M name=I.02 packet-mark=IN128001-256000 parent=I.PRIORITY priority=4 queue=pcq-download-default
  49. add limit-at=1M max-limit=10M name=I.03 packet-mark=IN256001-512000 parent=I.PRIORITY priority=5 queue=pcq-download-default
  50. add limit-at=1M max-limit=10M name=I.04 packet-mark=IN512001-1000000 parent=I.PRIORITY priority=6 queue=pcq-download-default
  51. add limit-at=1M max-limit=10M name=I.05 packet-mark=IN1000001-1000000000 parent=I.PRIORITY priority=7 queue=pcq-download-default
  52. add limit-at=1M max-limit=10M name=I.06 packet-mark=INunknown parent=I.PRIORITY queue=pcq-download-default
  53. add max-limit=3M name=OUTGOING parent=QOUALITY-OF-SERVICE queue=default
  54. add max-limit=100M name=O.PRIORITY parent=OUTGOING queue=default
  55. add limit-at=64k max-limit=100M name=O.VIP packet-mark=OUTvip parent=OUTGOING priority=1 queue=default
  56. add limit-at=100k max-limit=3M name=O.01 packet-mark=OUT0-128000 parent=O.PRIORITY priority=3 queue=pcq-upload-default
  57. add limit-at=100k max-limit=3M name=O.02 packet-mark=OUT128001-256000 parent=O.PRIORITY priority=4 queue=pcq-upload-default
  58. add limit-at=100k max-limit=3M name=O.03 packet-mark=OUT256001-512000 parent=O.PRIORITY priority=5 queue=pcq-upload-default
  59. add limit-at=100k max-limit=3M name=O.04 packet-mark=OUT512001-1000000 parent=O.PRIORITY priority=6 queue=pcq-upload-default
  60. add limit-at=100k max-limit=3M name=O.05 packet-mark=OUT1000001-1000000000 parent=O.PRIORITY priority=7 queue=pcq-upload-default
  61. add limit-at=100k max-limit=3M name=O.06 packet-mark=OUTunknown parent=O.PRIORITY queue=pcq-upload-default
Add Comment
Please, Sign In to add comment