使用教程 抛弃PCQ和限速,两个脚本搞定 [复制链接]

network
三国LV2
技术中心 8852 1 2010-11-4 12:43:55
只放该脚本 不放任何限速了。 效果绝对好。
上网人多的时候。对游戏没有影响。

脚本1

  1. /queue tree
  2. add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
  3.     max-limit=24000000 name=2-web&down packet-mark="" parent=global-out \
  4.     priority=2 queue=default
  5. add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
  6.     max-limit=0 name=1-games packet-mark=games_down_p parent=global-total \
  7.     priority=1 queue=default
  8. add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=\
  9.     5000000 max-limit=24000000 name=3-down packet-mark=wan_down parent=\
  10.     2-web&down priority=4 queue=default
  11. add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
  12.     max-limit=24000000 name=4-web packet-mark=http parent=2-web&down \
  13.     priority=5 queue=default
  14. add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=\
  15.     1000000 max-limit=3000000 name=9-p2p packet-mark=p2p1 parent=global-in \
  16.     priority=8 queue=default
复制代码

2010-11-4 12:45:02
脚本2


  1. /ip firewall mangle
  2. add action=jump chain=prerouting comment="" disabled=no in-interface=wan \
  3. jump-target=gamesdown
  4. add action=mark-packet chain=prerouting comment="" disabled=no in-interface=\
  5. wan new-packet-mark=wan_down passthrough=no
  6. add action=mark-packet chain=forward comment="" disabled=no new-packet-mark=\
  7. wan_up out-interface=wan passthrough=yes
  8. add action=mark-packet chain=forward comment="" disabled=no new-packet-mark=\
  9. wan_up out-interface=wan passthrough=no
  10. add action=mark-connection chain=prerouting comment=web disabled=no dst-port=\
  11. 80 new-connection-mark=http-con passthrough=yes protocol=tcp
  12. add action=mark-packet chain=forward comment="" connection-mark=http-con \
  13. disabled=no new-packet-mark=http passthrough=yes
  14. add action=mark-connection chain=gamesdown comment=icmp disabled=no \
  15. new-connection-mark=gamesdown passthrough=yes protocol=icmp
  16. add action=mark-packet chain=gamesdown comment="" connection-mark=gamesdown \
  17. disabled=no new-packet-mark=games_down_p passthrough=no
  18. add action=mark-packet chain=prerouting comment="" disabled=no in-interface=\
  19. wan new-packet-mark=wan_down passthrough=yes
  20. add action=mark-connection chain=gamesdown comment="\B7\E7\D4\C6" disabled=no \
  21. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=2347
  22. add action=mark-connection chain=gamesdown comment="\C4\A7\CA\DE\CA\C0\BD\E7" \
  23. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  24. src-port=3724
  25. add action=mark-connection chain=gamesdown comment="\B9\A6\B7\F2\CA\C0\BD\E7" \
  26. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  27. src-port=5052
  28. add action=mark-connection chain=gamesdown comment="\C4\A7\D3\F2\BC\A4\D5\BD" \
  29. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  30. src-port=5816
  31. add action=mark-connection chain=gamesdown comment="\D5\F7\CD\BE" disabled=no \
  32. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=6020
  33. add action=mark-connection chain=gamesdown comment="\BD\A3\CF\C0\CA\C0\BD\E7" \
  34. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  35. src-port=6047
  36. add action=mark-connection chain=gamesdown comment="\CC\EC\C1\FA\B0\CB\B2\BF" \
  37. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  38. src-port=3731-3736
  39. add action=mark-connection chain=gamesdown comment="QQ\C8\FD\B9\FA" disabled=\
  40. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  41. 6299
  42. add action=mark-connection chain=gamesdown comment="\B4\AB\C6\E62" disabled=\
  43. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  44. 7000,7100
  45. add action=mark-connection chain=gamesdown comment="\B4\AB\C6\E63" disabled=\
  46. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  47. 7200-7205
  48. add action=mark-connection chain=gamesdown comment="\CC\EC\CC\C32" disabled=\
  49. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  50. 7777
  51. add action=mark-connection chain=gamesdown comment="\CE\CA\B5\C0" disabled=no \
  52. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=9012
  53. add action=mark-connection chain=gamesdown comment="\B2\CA\BA\E7\B5\BA" \
  54. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  55. src-port=10003
  56. add action=mark-connection chain=gamesdown comment="\BD\D6\CD\B7\C0\BA\C7\F2" \
  57. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  58. src-port=10011
  59. add action=mark-connection chain=gamesdown comment="\C8\C8\D1\AA\BD\AD\BA\FE" \
  60. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  61. src-port=13000
  62. add action=mark-connection chain=gamesdown comment=CS disabled=no \
  63. new-connection-mark=gamesdown passthrough=yes protocol=udp src-port=\
  64. 27005,27015,27016
  65. add action=mark-connection chain=gamesdown comment="\B3\AC\BC\B6\CE\E8\D5\DF" \
  66. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  67. src-port=15010
  68. add action=mark-connection chain=gamesdown comment="\B7\E7\BB\F0\D6\AE\C2\C3" \
  69. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  70. src-port=20001
  71. add action=mark-connection chain=gamesdown comment="\BE\A2\CE\E8\CD\C5" \
  72. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  73. src-port=25510-25530
  74. add action=mark-connection chain=gamesdown comment="QQ\D2\F4\CB\D9" disabled=\
  75. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  76. 28008
  77. add action=mark-connection chain=gamesdown comment=\
  78. "\CD\EA\C3\C0\CA\C0\BD\E7\D6\EF\CF\C9,\C8\C8\CE\E8\C5\C9\B6\D3" disabled=\
  79. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  80. 29000
  81. add action=mark-connection chain=gamesdown comment=\
  82. "\B5\D8\CF\C2\B3\C7\D3\EB\D3\C2\CA\BF" disabled=no new-connection-mark=\
  83. gamesdown passthrough=yes protocol=tcp src-port=10010-10060
  84. add action=mark-connection chain=gamesdown comment="" disabled=no \
  85. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=7103
  86. add action=mark-connection chain=gamesdown comment=CF disabled=no \
  87. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=10008
  88. add action=mark-connection chain=gamesdown comment="" disabled=no \
  89. new-connection-mark=gamesdown passthrough=yes protocol=udp src-port=\
  90. 12010-12190
  91. add action=mark-connection chain=gamesdown comment=QQ disabled=no \
  92. new-connection-mark=gamesdown passthrough=yes protocol=udp src-port=8000
  93. add action=mark-connection chain=gamesdown comment="QQ\EC\C5\CE\E8" disabled=\
  94. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  95. 31414
  96. add action=mark-connection chain=gamesdown comment="QQ\B7\C9\B3\B5" disabled=\
  97. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  98. 39311
  99. add action=mark-connection chain=gamesdown comment="\D1\B0\CF\C9" disabled=no \
  100. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=15002
  101. add action=mark-connection chain=gamesdown comment="\D3\CE\CF\B72" disabled=\
  102. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  103. 38112
  104. add action=mark-connection chain=gamesdown comment="\C3\CE\BB\C3\CE\F7\D3\CE" \
  105. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  106. src-port=10616,22288
  107. add action=mark-connection chain=gamesdown comment=winbox disabled=no \
  108. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=8291
  109. add action=mark-connection chain=gamesdown comment=\
  110. "QQ\B6\D4\D5\BD\C6\BD\CC\A8" disabled=no new-connection-mark=gamesdown \
  111. passthrough=yes protocol=udp src-port=1671
  112. add action=mark-connection chain=gamesdown comment=\
  113. "\BA\C6\B7\BD\B6\D4\D5\BD\C6\BD\CC\A8" disabled=no new-connection-mark=\
  114. gamesdown passthrough=yes protocol=udp src-port=1509-1513
  115. add action=mark-connection chain=gamesdown comment=QQbattle disabled=no \
  116. new-connection-mark=gamesdown passthrough=yes protocol=udp src-port=\
  117. 7000,7100
  118. add action=mark-connection chain=gamesdown comment="\BD\A3\CF\C0\C7\E9\D4\B5" \
  119. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  120. src-port=6660-6672
  121. add action=mark-connection chain=gamesdown comment=\
  122. "\BD\A3\CF\C0\C7\E9\D4\B53" disabled=no new-connection-mark=gamesdown \
  123. passthrough=yes protocol=tcp src-port=16763
  124. add action=mark-connection chain=gamesdown comment="" disabled=no \
  125. new-connection-mark=gamesdown passthrough=yes protocol=udp src-port=16763
  126. add action=mark-connection chain=gamesdown comment="" disabled=no \
  127. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  128. 3112-3115
  129. add action=mark-connection chain=gamesdown comment="\B7\E2\C9\F1\B0\F12" \
  130. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  131. src-port=8888
  132. add action=mark-connection chain=gamesdown comment="\B4\F3\BB\B0\CE\F7\D3\CE" \
  133. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  134. src-port=3488
  135. add action=mark-connection chain=gamesdown comment="\B4\F3\CC\C6\B7\E7\D4\C6" \
  136. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=udp \
  137. src-port=31001
  138. add action=mark-connection chain=gamesdown comment="\B7\E7\D4\C6" disabled=no \
  139. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=2347
  140. add action=mark-connection chain=gamesdown comment="\C4\A7\CA\DE\CA\C0\BD\E7" \
  141. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  142. src-port=1119
  143. add action=mark-connection chain=gamesdown comment="" disabled=no \
  144. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=3724
  145. add action=mark-connection chain=gamesdown comment="\CC\EC\C1\FA\B0\CB\B2\BF" \
  146. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  147. src-port=3731-3736
  148. add action=mark-connection chain=gamesdown comment="\B9\A6\B7\F2\CA\C0\BD\E7" \
  149. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  150. src-port=5052
  151. add action=mark-connection chain=gamesdown comment="\C4\A7\D3\F2\BC\A4\D5\BD" \
  152. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  153. src-port=5816
  154. add action=mark-connection chain=gamesdown comment="\D5\F7\CD\BE" disabled=no \
  155. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=6020
  156. add action=mark-connection chain=gamesdown comment="\BD\A3\CF\C0\CA\C0\BD\E7" \
  157. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  158. src-port=6047
  159. add action=mark-connection chain=gamesdown comment="QQ\C8\FD\B9\FA" disabled=\
  160. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  161. 6299
  162. add action=mark-connection chain=gamesdown comment="\B4\AB\C6\E63" disabled=\
  163. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  164. 7200-7205
  165. add action=mark-connection chain=gamesdown comment="\CC\EC\CC\C32" disabled=\
  166. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  167. 7777
  168. add action=mark-connection chain=gamesdown comment="\CE\CA\B5\C0" disabled=no \
  169. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=9012
  170. add action=mark-connection chain=gamesdown comment="\B2\CA\BA\E7\B5\BA" \
  171. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  172. src-port=10003
  173. add action=mark-connection chain=gamesdown comment="\B4\AB\C6\E62" disabled=\
  174. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  175. 7000,7100
  176. add action=mark-connection chain=gamesdown comment="\BD\D6\CD\B7\C0\BA\C7\F2" \
  177. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  178. src-port=10011
  179. add action=mark-connection chain=gamesdown comment="\C8\C8\D1\AA\BD\AD\BA\FE" \
  180. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  181. src-port=13000
  182. add action=mark-connection chain=gamesdown comment=CS disabled=no \
  183. new-connection-mark=gamesdown passthrough=yes protocol=udp src-port=\
  184. 27005,27015,27016
  185. add action=mark-connection chain=gamesdown comment="\B3\AC\BC\B6\CE\E8\D5\DF" \
  186. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  187. src-port=15010
  188. add action=mark-connection chain=gamesdown comment="\B7\E7\BB\F0\D6\AE\C2\C3" \
  189. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  190. src-port=20001
  191. add action=mark-connection chain=gamesdown comment="\BE\A2\CE\E8\CD\C5" \
  192. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  193. src-port=25510-25530
  194. add action=mark-connection chain=gamesdown comment="QQ\D2\F4\CB\D9" disabled=\
  195. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  196. 28008
  197. add action=mark-connection chain=gamesdown comment=\
  198. "\CD\EA\C3\C0\CA\C0\BD\E7\D6\EF\CF\C9,\C8\C8\CE\E8\C5\C9\B6\D3" disabled=\
  199. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  200. 29000
  201. add action=mark-connection chain=gamesdown comment=\
  202. "\B5\D8\CF\C2\B3\C7\D3\EB\D3\C2\CA\BF" disabled=no new-connection-mark=\
  203. gamesdown passthrough=yes protocol=tcp src-port=10010-10060
  204. add action=mark-connection chain=gamesdown comment="" disabled=no \
  205. new-connection-mark=gamesdown passthrough=yes protocol=udp src-port=2957
  206. add action=mark-connection chain=gamesdown comment="" disabled=no \
  207. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=7103
  208. add action=mark-connection chain=gamesdown comment=CF disabled=no \
  209. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=10008
  210. add action=mark-connection chain=gamesdown comment="" disabled=no \
  211. new-connection-mark=gamesdown passthrough=yes protocol=udp src-port=\
  212. 12010-12190
  213. add action=mark-connection chain=gamesdown comment=QQ disabled=no \
  214. new-connection-mark=gamesdown passthrough=yes protocol=udp src-port=8000
  215. add action=mark-connection chain=gamesdown comment="QQ\EC\C5\CE\E8" disabled=\
  216. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  217. 31414
  218. add action=mark-connection chain=gamesdown comment="QQ\B7\C9\B3\B5" disabled=\
  219. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  220. 39311
  221. add action=mark-connection chain=gamesdown comment="\D1\B0\CF\C9" disabled=no \
  222. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=15002
  223. add action=mark-connection chain=gamesdown comment="\D3\CE\CF\B72" disabled=\
  224. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  225. 38112
  226. add action=mark-connection chain=gamesdown comment="\C3\CE\BB\C3\CE\F7\D3\CE" \
  227. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  228. src-port=10616,22288
  229. add action=mark-connection chain=gamesdown comment=winbox disabled=no \
  230. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=8291
  231. add action=mark-connection chain=gamesdown comment=\
  232. "QQ\B6\D4\D5\BD\C6\BD\CC\A8" disabled=no new-connection-mark=gamesdown \
  233. passthrough=yes protocol=udp src-port=1671
  234. add action=mark-connection chain=gamesdown comment=\
  235. "\BA\C6\B7\BD\B6\D4\D5\BD\C6\BD\CC\A8" disabled=no new-connection-mark=\
  236. gamesdown passthrough=yes protocol=udp src-port=1509-1513
  237. add action=mark-connection chain=gamesdown comment=QQbattle disabled=no \
  238. new-connection-mark=gamesdown passthrough=yes protocol=udp src-port=\
  239. 7000,7100
  240. add action=mark-connection chain=gamesdown comment="\BD\A3\CF\C0\C7\E9\D4\B5" \
  241. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  242. src-port=6660-6672
  243. add action=mark-connection chain=gamesdown comment=\
  244. "\BD\A3\CF\C0\C7\E9\D4\B53" disabled=no new-connection-mark=gamesdown \
  245. passthrough=yes protocol=tcp src-port=16763
  246. add action=mark-connection chain=gamesdown comment="" disabled=no \
  247. new-connection-mark=gamesdown passthrough=yes protocol=udp src-port=16763
  248. add action=mark-connection chain=gamesdown comment="" disabled=no \
  249. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  250. 3112-3115
  251. add action=mark-connection chain=gamesdown comment="\B7\E2\C9\F1\B0\F12" \
  252. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  253. src-port=8888
  254. add action=mark-connection chain=gamesdown comment="\B4\F3\BB\B0\CE\F7\D3\CE" \
  255. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=tcp \
  256. src-port=3488
  257. add action=mark-connection chain=gamesdown comment="\B4\F3\CC\C6\B7\E7\D4\C6" \
  258. disabled=no new-connection-mark=gamesdown passthrough=yes protocol=udp \
  259. src-port=31001
  260. add action=mark-connection chain=gamesdown comment="\C4\A7\CA\DE3" disabled=\
  261. no new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=\
  262. 1118,1310
  263. add action=mark-connection chain=gamesdown comment=\
  264. "\C6\F0\B7\B2\C8\FD\B9\FA\D5\F9\B0\D4" disabled=no new-connection-mark=\
  265. gamesdown passthrough=yes protocol=tcp src-port=6205,1607,2175
  266. add action=mark-connection chain=gamesdown comment=\
  267. "\C6\F0\B7\B2\C8\FD\B9\FA\D5\F9\B0\D4" disabled=no new-connection-mark=\
  268. gamesdown passthrough=yes protocol=udp src-port=11438
  269. add action=mark-connection chain=gamesdown comment=JK disabled=no \
  270. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=8888
  271. add action=mark-connection chain=gamesdown comment="" disabled=no \
  272. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=9880
  273. add action=mark-connection chain=gamesdown comment="" disabled=no \
  274. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=9881
  275. add action=mark-connection chain=gamesdown comment="" disabled=no \
  276. new-connection-mark=gamesdown passthrough=yes protocol=tcp src-port=8889
  277. add action=mark-packet chain=prerouting comment=p2p-udp disabled=no \
  278. new-packet-mark=p2p packet-size=800-1500 passthrough=yes protocol=udp \
  279. src-address=192.168.0.0/23 src-address-list=p2p-udp src-port=1000-65535
  280. add action=add-src-to-address-list address-list=p2p-udp address-list-timeout=\
  281. 30s chain=prerouting comment="" connection-limit=100,32 disabled=no \
  282. protocol=tcp src-address=192.168.0.0/23
  283. add action=mark-packet chain=prerouting comment=p2p-tcp disabled=no dst-port=\
  284. !80 new-packet-mark=p2p1 packet-size=800-1500 passthrough=yes protocol=\
  285. tcp src-address=192.168.0.0/23 src-address-list=p2p-20
  286. add action=add-src-to-address-list address-list=p2p-20 address-list-timeout=\
  287. 30s chain=prerouting comment="" connection-limit=20,32 disabled=no \
  288. dst-port=!80 packet-size=800-1500 protocol=tcp src-address=192.168.0.0/23
复制代码


您需要登录后才可以回帖 立即登录
高级模式
返回
统计信息
  • 会员数: 29041 个
  • 话题数: 9627 篇
  • 巅峰数: 5500 人