首页 > 代码库 > ROS-PCQ基于IP的限速(总带宽上下行5M)

ROS-PCQ基于IP的限速(总带宽上下行5M)

 /ip firewall mangle add chain=forward src-address=192.168.0.0/16 \

action=mark-connection new-connection-mark=users-con
/ip firewall mangle add connection-mark=users-con action=mark-packet \
new-packet-mark=users chain=forward
 
/queue type add name=pcq-download kind=pcq pcq-classifier=dst-address
/queue type add name=pcq-upload kind=pcq pcq-classifier=src-address
 
/queue tree add name=Download parent=ToLieBao max-limit=5120000
/queue tree add parent=Download queue=pcq-download packet-mark=users
 
/queue tree add name=Upload parent=WAN max-limit=5120000
/queue tree add parent=Upload queue=pcq-upload packet-mark=users

ROS-PCQ基于IP的限速(总带宽上下行5M)