枫影 发表于 2009-5-26 15:52:27

网段PCQ限速1M,80端口优先2M,各位帮看看对嘛?

先mark包:
/ip firewall mangle
add action=mark-connection chain=prerouting comment=mark_conn_all disabled=no \
    new-connection-mark=mark-conn-all passthrough=yes
add action=mark-packet chain=prerouting comment=mark-all connection-mark=\
    mark-conn-all disabled=no new-packet-mark=mark-all passthrough=yes
add action=mark-connection chain=prerouting comment=mark-conn-http disabled=\
    no dst-port=80 new-connection-mark=mark-conn-http passthrough=yes \
    protocol=tcp
add action=mark-connection chain=prerouting comment="NAT 80 Mark" disabled=no \
    new-connection-mark=mark-conn-http passthrough=yes protocol=tcp src-port=\
    80
add action=mark-packet chain=prerouting comment=mark-http connection-mark=\
    mark-conn-http disabled=no new-packet-mark=mark-http passthrough=yes


后PCQ限速,80端口优先享受2M带宽,其他其次限速为1M带宽:
/queue simple
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment="" \
    direction=both disabled=no dst-address=0.0.0.0/0 interface=vlan limit-at=\
    0/0 max-limit=0/0 name=PCQ_Net06 packet-marks=mark-all parent=none \
    priority=8 queue=Up_1m/Down_1m target-addresses=172.16.6.0/24 \
    total-queue=default-small
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment="" \
    direction=both disabled=no dst-address=0.0.0.0/0 interface=vlan limit-at=\
    0/0 max-limit=0/0 name=PCQ_Net06_Http packet-marks=mark-http parent=none \
    priority=1 queue=Up_2m/Down_2M target-addresses=172.16.6.0/24 \
    total-queue=default-small

tpy372 发表于 2009-5-27 01:26:56

眼花:lol

枫影 发表于 2009-5-27 08:18:59

眼花:lol
tpy372 发表于 2009-5-27 01:26 http://bbs.routerclub.com/images/common/back.gif
晕。。。。。麻烦给点建议?

fillmore 发表于 2009-5-27 17:24:39

你没在用吗?

hj5470 发表于 2009-5-27 22:24:16

想限P2p?,不好用吧,现在很多都用80了

nzcool 发表于 2009-5-28 09:23:50

迅雷就是80端口的好像

枫影 发表于 2009-5-31 08:44:57

不过这样限制,貌似效果还行哇,已经1星期了,总带宽100M光纤效果还行,没人说看网页卡了
不过下载,被限制1M的网段也就100K上下的样子

qq3475534 发表于 2010-5-9 15:12:47

不错。呵呵

ypw 发表于 2010-5-9 23:34:25

100M光纤80才给2M???
页: [1]
查看完整版本: 网段PCQ限速1M,80端口优先2M,各位帮看看对嘛?