OpenWrt L7 Filtering QoS configuration

Source: Internet
Author: User

OpenWrt L7 Filtering QoS configuration
accessible by lift #
This post was last edited by the wooden bird on 2010-7-27 10:22

OpenWrt QoS is based on HSFC. Features such as classification marking, flow control, and possibly shaping
The actual use of the effect is very good. Like a priority-based fair queue.

OpenWrt provides four queue levels by default
Class Packets bytes
Priority 17172 1666639 (1.6 MiB)
Express 2784325 270790491 (258.2 MiB)
Normal 3993830 3667146683 (3.4 GiB)
Bulk 7539946 6768585796 (6.3 GiB)
Highest priority, manrk=01
Express Second, mark=02
Normal, mark=03.
Bulk can support delay transmission or discard more data, mark=04

L7 recognition rate is low, mainly by ipp2p and the default priority method to control the download traffic.
You can try to add more priority by editing the/etc/config/qos file.
This first implements a filter based on l7+ipp2p. In addition, it is used in conjunction with port priority and IP-priority.

To achieve the effect, users can freely bt or thunder download, when the bandwidth is not used, peer-to traffic can occupy a full bandwidth, when the user uses HTTP and other high-priority services, peer-to traffic is automatically reduced speed.
This QoS does not provide speed control for individual users.

Call for mice one to two, requires the use of the Forum version of OpenWrt.

--------------------------------------------------------------------------------------------------------------- -----------------------------------------------------
Installing components
    1. OPKG Update
    2. opkg Install iptables-mod-ipp2p kmod-ipt-ipp2p kmod-ipt-ipopt iptables-mod-ipopt Luci-app-qos
Copy CodeDownload L7-PROTOCOLS_2009-05-28-1_BRCM63XX.IPK Package
After decompression, extract all of the PAT files inside the/etc/l7-protocols directory

My QoS configuration file
Provide reference for everyone
  1. Config ' interface ' WAN '
  2. Option ' Classgroup ' ' Default '
  3. Option ' enabled ' 1 '
  4. Option ' overhead ' 1 '
  5. option ' Download ' 2048 '
  6. Option ' upload ' 1000 '
  7. Config ' classify '
  8. Option ' target ' priority '
  9. Option ' Ports ' 22,23,53,3389,5060,5900,8000 '
  10. Config ' classify '
  11. Option ' target ' priority '
  12. Option ' Layer7 ' Dazhihui '
  13. Config ' classify '
  14. Option ' target ' priority '
  15. Option ' Layer7 ' h323 '
  16. Config ' classify '
  17. Option ' target ' priority '
  18. Option ' Layer7 ' Msnmessenger '
  19. Config ' classify '
  20. Option ' target ' priority '
  21. Option ' Layer7 ' pcanywhere '
  22. Config ' classify '
  23. Option ' target ' priority '
  24. Option ' Layer7 ' QQ '
  25. Config ' classify '
  26. Option ' target ' priority '
  27. Option ' Layer7 ' radmin '
  28. Config ' classify '
  29. Option ' target ' priority '
  30. Option ' Layer7 ' RDP '
  31. Config ' classify '
  32. Option ' target ' priority '
  33. Option ' Layer7 ' rlogin '
  34. Config ' classify '
  35. Option ' target ' priority '
  36. Option ' layer7 ' SIP '
  37. Config ' classify '
  38. Option ' target ' priority '
  39. Option ' Layer7 ' SkypeOut '
  40. Config ' classify '
  41. Option ' target ' priority '
  42. Option ' Layer7 ' Skypetoskype '
  43. Config ' classify '
  44. Option ' target ' priority '
  45. Option ' Layer7 ' Tonghuashun '
  46. Config ' classify '
  47. Option ' target ' priority '
  48. Option ' Layer7 ' VNC
  49. Config ' classify '
  50. Option ' target ' ' Express '
  51. Option ' Layer7 ' HTML '
  52. Config ' classify '
  53. Option ' target ' ' Express '
  54. Option ' Layer7 ' jpeg
  55. Config ' classify '
  56. Option ' target ' ' Express '
  57. Option ' Layer7 ' png
  58. Config ' classify '
  59. Option ' target ' ' Express '
  60. Option ' layer7 ' gif '
  61. Config ' classify '
  62. Option ' target ' ' Express '
  63. option ' Layer7 ' flash
  64. Config ' classify '
  65. Option ' target ' ' Express '
  66. Option ' Ports ' 500,1194,1701,1720,1723,4500,5000 '
  67. Config ' classify '
  68. Option ' target ' ' Express '
  69. Option ' Layer7 ' Msn-filetransfer '
  70. Config ' classify '
  71. Option ' target ' ' Express '
  72. Option ' layer7 ' socks '
  73. Config ' classify '
  74. Option ' target ' ' Express '
  75. Option ' Layer7 ' SSL '
  76. Config ' classify '
  77. Option ' target ' ' Express '
  78. Option ' Layer7 ' Ciscovpn '
  79. Config ' classify '
  80. Option ' Target ' Normal '
  81. Option ' Srchost ' 192.168.0.100 '
  82. Config ' classify '
  83. Option ' Target ' Normal '
  84. Option ' Proto ' TCP '
  85. Option ' Ports ' 20,21,25,80,110,443,993,995 '
  86. Config ' classify '
  87. Option ' Target ' Normal '
  88. Option ' Layer7 ' RTP
  89. Config ' classify '
  90. Option ' Target ' Normal '
  91. Option ' Layer7 ' RTSP '
  92. Config ' reclassify '
  93. Option ' target ' ' Express '
  94. Option ' proto ' UDP '
  95. Option ' pktsize '-500 '
  96. Config ' default '
  97. Option ' target ' priority '
  98. Option ' Proto ' ICMP '
  99. Config ' reclassify '
  100. Option ' target ' priority '
  101. Option ' Proto ' TCP '
  102. Option ' Mark '! Bulk '
  103. Option ' tcpflags ' SYN '
  104. Option ' pktsize '-128 '
  105. Config ' classgroup ' ' Default '
  106. Option ' Classes ' priority Express Normal Bulk Drop '
  107. Option ' Default ' ' Bulk '
  108. Config ' class ' priority '
  109. Option ' packetsize ' 400 '
  110. Option ' maxsize ' 400 '
  111. Option ' avgrate ' 10 '
  112. Option ' priority ' ' 20 '
  113. Config ' class ' ' Priority_down '
  114. Option ' packetsize ' 1000 '
  115. Option ' avgrate ' 10 '
  116. Config ' class ' Express '
  117. Option ' packetsize ' 1000 '
  118. Option ' maxsize ' 800 '
  119. Option ' avgrate ' 50 '
  120. Option ' priority ' ' 10 '
  121. Config ' class ' Normal '
  122. Option ' packetsize ' 1500 '
  123. Option ' packetdelay ' 100 '
  124. Option ' avgrate ' 10 '
  125. Option ' priority ' ' 5 '
  126. Config ' class ' ' Normal_down '
  127. Option ' avgrate ' 20 '
  128. Config ' class ' ' Bulk '
  129. Option ' avgrate ' 5 '
  130. Option ' packetdelay ' 100 '
  131. Config ' class ' Drop '
  132. Option ' avgrate ' 1 '
  133. Option ' Packetdelay ' 200 '
  134. Config ' classify '
  135. Option ' Layer7 ' Xunlei '
  136. Option ' Target ' Drop '
  137. Config ' classify '
  138. Option ' Layer7 ' BitTorrent '
  139. Option ' Target ' Drop '
  140. Config ' classify '
  141. Option ' Layer7 ' edonkey '
  142. Option ' Target ' Drop '
  143. Config ' classify '
  144. Option ' Layer7 ' Directconnect '
  145. Option ' Target ' Drop '
  146. Config ' classify '
  147. Option ' ipp2p ' all '
  148. Option ' Target ' Bulk '

OpenWrt L7 Filtering QoS configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.