ip firewall mangle add action=mark-packet new-packet-mark=squid dscp=12 passthrough=no chain=prerouting
:for e from=2 to=35 do={
/ip fi ma
add action mark-connection new-connection-mark="pc$e" src-address="192.168.2.$e" chain=prerouting
add action=mark-packet new-packet-mark="pc$e" connection-mark="pc$e" chain=prerouting passthrough=no
}
queue tree add name=squid parent=ether2-warnet packet-mark=squid
queue tree add parent=ether2-warnet max-limit=2M name=Downlink
queue type add name=PCQ-1Mbps kind=pcq pcq-rate=1024k pcq-classifier=dst-address
:for e from=2 to=35 do={
/queue tree
add parent=Downlink limit-at=128k max-limit=1024k name="pc$e" packet-mark="pc$e" queue=PCQ-1Mbps
}
No comments:
Post a Comment