mikrotik Traffic Shapping


SUBMITTED BY: Guest

DATE: Dec. 23, 2013, 6:53 p.m.

FORMAT: Text only

SIZE: 6.2 kB

HITS: 1322

  1. / ip firewall mangle
  2. add chain=prerouting p2p=all-p2p action=mark-connection new-connection-mark=p2p-connections \
  3. passthrough=yes comment="P2P" disabled=no
  4. add chain=prerouting connection-mark=p2p-connections action=mark-packet new-packet-mark=4 \
  5. passthrough=yes comment="" disabled=no
  6. add chain=prerouting protocol=tcp src-port=20 action=mark-packet new-packet-mark=3 \
  7. passthrough=yes comment="FTP" disabled=no
  8. add chain=prerouting protocol=tcp dst-port=20 action=mark-packet new-packet-mark=3 \
  9. passthrough=yes comment="" disabled=no
  10. add chain=prerouting protocol=icmp action=mark-packet new-packet-mark=1 \
  11. passthrough=yes comment="ICMP" disabled=no
  12. add chain=prerouting protocol=udp dst-port=10000-20000 action=mark-packet new-packet-mark=1 \
  13. passthrough=yes comment="VOIP RTP" disabled=no
  14. add chain=prerouting protocol=udp src-port=10000-20000 action=mark-packet new-packet-mark=1 \
  15. passthrough=yes comment="" disabled=no
  16. add chain=prerouting protocol=udp dst-port=0-1024 action=mark-packet new-packet-mark=1 \
  17. passthrough=yes comment="LOW PORTS UDP" disabled=no
  18. add chain=prerouting protocol=udp src-port=0-1024 action=mark-packet new-packet-mark=1 \
  19. passthrough=yes comment="" disabled=no
  20. add chain=prerouting protocol=tcp dst-port=80 action=mark-packet new-packet-mark=2 \
  21. passthrough=yes comment="HTTP" disabled=no
  22. add chain=prerouting protocol=tcp src-port=80 action=mark-packet new-packet-mark=2 \
  23. passthrough=yes comment="" disabled=no
  24. add chain=prerouting protocol=tcp dst-port=6666-6668 action=mark-packet new-packet-mark=1 \
  25. passthrough=yes comment="IRC" disabled=no
  26. add chain=prerouting protocol=tcp src-port=6666-6668 action=mark-packet new-packet-mark=1 \
  27. passthrough=yes comment="" disabled=no
  28. add chain=prerouting protocol=tcp dst-port=3128 action=mark-packet new-packet-mark=2 \
  29. passthrough=yes comment="PROXY" disabled=no
  30. add chain=prerouting protocol=tcp src-port=3128 action=mark-packet new-packet-mark=2 \
  31. passthrough=yes comment="" disabled=no
  32. add chain=prerouting protocol=tcp dst-port=3130 action=mark-packet new-packet-mark=2 \
  33. passthrough=yes comment="" disabled=no
  34. add chain=prerouting protocol=tcp src-port=3130 action=mark-packet new-packet-mark=2 \
  35. passthrough=yes comment="" disabled=no
  36. add chain=prerouting protocol=tcp dst-port=8080 action=mark-packet new-packet-mark=2 \
  37. passthrough=yes comment="" disabled=no
  38. add chain=prerouting protocol=tcp src-port=8080 action=mark-packet new-packet-mark=2 \
  39. passthrough=yes comment="" disabled=no
  40. add chain=prerouting protocol=tcp src-port=25 action=mark-packet new-packet-mark=2 \
  41. passthrough=yes comment="SMTP" disabled=no
  42. add chain=prerouting protocol=tcp dst-port=25 action=mark-packet new-packet-mark=2 \
  43. passthrough=yes comment="" disabled=no
  44. add chain=prerouting protocol=tcp dst-port=110 action=mark-packet new-packet-mark=2 \
  45. passthrough=yes comment="POP3" disabled=no
  46. add chain=prerouting protocol=tcp src-port=110 action=mark-packet new-packet-mark=2 \
  47. passthrough=yes comment="" disabled=no
  48. add chain=prerouting protocol=tcp dst-port=143 action=mark-packet new-packet-mark=2 \
  49. passthrough=yes comment="IMAP" disabled=no
  50. add chain=prerouting protocol=tcp src-port=143 action=mark-packet new-packet-mark=2 \
  51. passthrough=yes comment="" disabled=no
  52. add chain=prerouting protocol=tcp dst-port=22 action=mark-packet new-packet-mark=1 \
  53. passthrough=yes comment="SSH" disabled=no
  54. add chain=prerouting protocol=tcp src-port=22 action=mark-packet new-packet-mark=1 \
  55. passthrough=yes comment="" disabled=no
  56. add chain=prerouting protocol=tcp dst-port=115 action=mark-packet new-packet-mark=3 \
  57. passthrough=yes comment="SFTP" disabled=no
  58. add chain=prerouting protocol=tcp src-port=115 action=mark-packet new-packet-mark=3 \
  59. passthrough=yes comment="" disabled=no
  60. add chain=prerouting protocol=tcp dst-port=69 action=mark-packet new-packet-mark=3 \
  61. passthrough=yes comment="TFTP" disabled=no
  62. add chain=prerouting protocol=tcp src-port=69 action=mark-packet new-packet-mark=3 \
  63. passthrough=yes comment="" disabled=no
  64. add chain=prerouting protocol=tcp dst-port=123 action=mark-packet new-packet-mark=1 \
  65. passthrough=yes comment="NTP" disabled=no
  66. add chain=prerouting protocol=tcp src-port=123 action=mark-packet new-packet-mark=1 \
  67. passthrough=yes comment="" disabled=no
  68. add chain=prerouting protocol=tcp dst-port=161 action=mark-packet new-packet-mark=1 \
  69. passthrough=yes comment="SNMP" disabled=no
  70. add chain=prerouting protocol=tcp src-port=161 action=mark-packet new-packet-mark=1 \
  71. passthrough=yes comment="" disabled=no
  72. add chain=prerouting protocol=gre action=mark-packet new-packet-mark=1 \
  73. passthrough=yes comment="GRE" disabled=no
  74. add chain=prerouting protocol=gre action=mark-packet new-packet-mark=1 \
  75. passthrough=yes comment="" disabled=no
  76. add chain=prerouting protocol=tcp dst-port=3389 action=mark-packet new-packet-mark=1 \
  77. passthrough=yes comment="REMOTE DESKTOP" disabled=no
  78. add chain=prerouting protocol=tcp src-port=3389 action=mark-packet new-packet-mark=1 \
  79. passthrough=yes comment="" disabled=no
  80. add chain=prerouting protocol=tcp dst-port=873 action=mark-packet new-packet-mark=3 \
  81. passthrough=yes comment="RSYNC" disabled=no
  82. add chain=prerouting protocol=tcp src-port=873 action=mark-packet new-packet-mark=3 \
  83. passthrough=yes comment="" disabled=no
  84. add chain=prerouting protocol=tcp dst-port=179 action=mark-packet new-packet-mark=1 \
  85. passthrough=yes comment="BGP" disabled=no
  86. add chain=prerouting protocol=tcp src-port=179 action=mark-packet new-packet-mark=1 \
  87. passthrough=yes comment="" disabled=no
  88. add chain=prerouting protocol=tcp dst-port=2605 action=mark-packet new-packet-mark=1 \
  89. passthrough=yes comment="" disabled=no
  90. add chain=prerouting protocol=tcp src-port=2605 action=mark-packet new-packet-mark=1 \
  91. passthrough=yes comment="" disabled=no

comments powered by Disqus