qos 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # QoS configuration for OpenWrt
  2. # INTERFACES:
  3. config interface wan
  4. option classgroup "Default"
  5. option enabled 1
  6. option overhead 1
  7. option upload 128
  8. option download 1024
  9. # RULES:
  10. config classify
  11. option target "Bulk"
  12. option ipp2p "all"
  13. config classify
  14. option target "Bulk"
  15. option layer7 "edonkey"
  16. config classify
  17. option target "Bulk"
  18. option layer7 "bittorrent"
  19. config classify
  20. option target "Priority"
  21. option ports "22,53"
  22. config classify
  23. option target "Normal"
  24. option proto "tcp"
  25. option ports "20,21,25,80,110,443,993,995"
  26. config classify
  27. option target "Express"
  28. option ports "5190"
  29. config default
  30. option target "Express"
  31. option proto "udp"
  32. option pktsize "-500"
  33. config reclassify
  34. option target "Priority"
  35. option proto "icmp"
  36. config default
  37. option target "Bulk"
  38. option portrange "1024-65535"
  39. config reclassify
  40. option target "Priority"
  41. option proto "tcp"
  42. option pktsize "-128"
  43. option mark "!Bulk"
  44. option tcpflags "SYN"
  45. config reclassify
  46. option target "Priority"
  47. option proto "tcp"
  48. option pktsize "-128"
  49. option mark "!Bulk"
  50. option tcpflags "ACK"
  51. # Don't change the stuff below unless you
  52. # really know what it means :)
  53. config classgroup "Default"
  54. option classes "Priority Express Normal Bulk"
  55. option default "Normal"
  56. config class "Priority"
  57. option packetsize 400
  58. option maxsize 400
  59. option avgrate 10
  60. option priority 20
  61. config class "Priority_down"
  62. option packetsize 1000
  63. option avgrate 10
  64. config class "Express"
  65. option packetsize 1000
  66. option maxsize 800
  67. option avgrate 50
  68. option priority 10
  69. config class "Normal"
  70. option packetsize 1500
  71. option packetdelay 100
  72. option avgrate 10
  73. option priority 5
  74. config class "Normal_down"
  75. option avgrate 20
  76. config class "Bulk"
  77. option avgrate 1
  78. option packetdelay 200