MANGGLE BADWIT

MANGGLE

/ip firewall mangle
add action=mark-connection chain=prerouting comment=PC-0 new-connection-mark=\
    PC-0 src-address=192.168.5.20
add action=mark-packet chain=prerouting connection-mark=PC-0 new-packet-mark=\
    PC-0 passthrough=no
add action=mark-connection chain=prerouting comment=PC-1 new-connection-mark=\
    PC-1 src-address=192.168.5.21
add action=mark-packet chain=prerouting connection-mark=PC-1 new-packet-mark=\
    PC-1 passthrough=no
add action=mark-connection chain=prerouting comment=PC-2 new-connection-mark=\
    PC-2 src-address=192.168.5.22
add action=mark-packet chain=prerouting connection-mark=PC-2 new-packet-mark=\
    PC-2 passthrough=no
add action=mark-connection chain=prerouting comment=PC-3 new-connection-mark=\
    PC-3 src-address=192.168.0.23
add action=mark-packet chain=prerouting connection-mark=PC-3 new-packet-mark=\
    PC-3 passthrough=no
add action=mark-connection chain=prerouting comment=PC-4 new-connection-mark=\
    PC-4 src-address=192.168.5.24
add action=mark-packet chain=prerouting connection-mark=PC-4 new-packet-mark=\
    PC-4 passthrough=no
add action=mark-connection chain=prerouting comment=PC-5 new-connection-mark=\
    PC-5 src-address=192.168.5.25
add action=mark-packet chain=prerouting connection-mark=PC-5 new-packet-mark=\
    PC-5 passthrough=no
add action=mark-connection chain=prerouting comment=PC-6 new-connection-mark=\
    PC-6 src-address=192.168.5.26
add action=mark-packet chain=prerouting connection-mark=PC-6 new-packet-mark=\
    PC-6 passthrough=no
add action=mark-connection chain=prerouting comment=PC-7 new-connection-mark=\
    PC-7 src-address=192.168.5.27
add action=mark-packet chain=prerouting connection-mark=PC-7 new-packet-mark=\
    PC-7 passthrough=no
add action=mark-connection chain=prerouting comment=PC-8 new-connection-mark=\
    PC-8 src-address=192.168.5.28
add action=mark-packet chain=prerouting connection-mark=PC-8 new-packet-mark=\
    PC-8 passthrough=no
add action=mark-connection chain=prerouting comment=PC-9 new-connection-mark=\
    PC-9 src-address=192.168.5.29
add action=mark-packet chain=prerouting connection-mark=PC-9 new-packet-mark=\
    PC-9 passthrough=no
add action=mark-connection chain=prerouting comment=PC-10 \
    new-connection-mark=PC-10 src-address=192.168.5.30
add action=mark-packet chain=prerouting connection-mark=PC-10 \
    new-packet-mark=PC-10 passthrough=no
add action=mark-connection chain=prerouting comment=PC-11 \
    new-connection-mark=PC-11 src-address=192.168.5.31
add action=mark-packet chain=prerouting connection-mark=PC-11 \
    new-packet-mark=PC-11 passthrough=no
add action=mark-connection chain=prerouting comment=PC-12 \
    new-connection-mark=PC-12 src-address=192.168.5.32
add action=mark-packet chain=prerouting connection-mark=PC-12 \
    new-packet-mark=PC-12 passthrough=no
add action=mark-connection chain=prerouting comment=PC-13 \
    new-connection-mark=PC-13 src-address=192.168.5.33
add action=mark-packet chain=prerouting connection-mark=PC-13 \
    new-packet-mark=PC-13 passthrough=no
add action=mark-connection chain=prerouting comment=PC-14 \
    new-connection-mark=PC-14 src-address=192.168.5.34
add action=mark-packet chain=prerouting connection-mark=PC-14 \
    new-packet-mark=PC-14 passthrough=no
add action=mark-connection chain=prerouting comment=PC-15 \
    new-connection-mark=PC-15 src-address=192.168.5.35
add action=mark-packet chain=prerouting connection-mark=PC-15 \
    new-packet-mark=PC-15 passthrough=no
add action=mark-connection chain=prerouting comment=PC-16 \
    new-connection-mark=PC-16 src-address=192.168.5.36
add action=mark-packet chain=prerouting connection-mark=PC-16 \
    new-packet-mark=PC-16 passthrough=no
add action=mark-connection chain=prerouting comment=PC-17 \
    new-connection-mark=PC-17 src-address=192.168.5.37
add action=mark-packet chain=prerouting connection-mark=PC-17 \
    new-packet-mark=PC-17 passthrough=no
add action=mark-connection chain=prerouting comment=PC-18 \
    new-connection-mark=PC-18 src-address=192.168.5.38
add action=mark-packet chain=prerouting connection-mark=PC-18 \
    new-packet-mark=PC-18 passthrough=no
add action=mark-connection chain=prerouting comment=PC-19 \
    new-connection-mark=PC-19 src-address=192.168.5.39
add action=mark-packet chain=prerouting connection-mark=PC-19 \
    new-packet-mark=PC-19 passthrough=no
add action=mark-connection chain=prerouting comment=PC-20 \
    new-connection-mark=PC-20 src-address=192.168.5.40
add action=mark-packet chain=prerouting connection-mark=PC-20 \
    new-packet-mark=PC-20 passthrough=no
add action=mark-connection chain=prerouting comment=PC-21 \
    new-connection-mark=PC-21 src-address=192.168.5.41
add action=mark-packet chain=prerouting connection-mark=PC-21 \
    new-packet-mark=PC-21 passthrough=no
add action=mark-connection chain=prerouting comment=PC-22 \
    new-connection-mark=PC-22 src-address=192.168.5.42
add action=mark-packet chain=prerouting connection-mark=PC-22 \
    new-packet-mark=PC-22 passthrough=no
add action=mark-connection chain=prerouting comment=PC-23 \
    new-connection-mark=PC-23 src-address=192.168.5.43
add action=mark-packet chain=prerouting connection-mark=PC-23 \
    new-packet-mark=PC-23 passthrough=no
add action=mark-connection chain=prerouting comment=PC-24 \
    new-connection-mark=PC-24 src-address=192.168.5.44
add action=mark-packet chain=prerouting connection-mark=PC-24 \
    new-packet-mark=PC-24 passthrough=no
add action=mark-connection chain=prerouting comment=PC-25 \
    new-connection-mark=PC-25 src-address=192.168.5.45
add action=mark-packet chain=prerouting connection-mark=PC-25 \
    new-packet-mark=PC-25 passthrough=no
add action=mark-connection chain=prerouting comment=PC-26 \
    new-connection-mark=PC-26 src-address=192.168.5.46
add action=mark-packet chain=prerouting connection-mark=PC-26 \
    new-packet-mark=PC-26 passthrough=no
add action=mark-connection chain=prerouting comment=PC-27 \
    new-connection-mark=PC-27 src-address=192.168.5.47
add action=mark-packet chain=prerouting connection-mark=PC-27 \
    new-packet-mark=PC-27 passthrough=no
add action=mark-connection chain=prerouting comment=PC-28 \
    new-connection-mark=PC-28 src-address=192.168.5.48
add action=mark-packet chain=prerouting connection-mark=PC-28 \
    new-packet-mark=PC-28 passthrough=no
add action=mark-connection chain=prerouting comment=PC-29 \
    new-connection-mark=PC-29 src-address=192.168.5.49
add action=mark-packet chain=prerouting connection-mark=PC-29 \
    new-packet-mark=PC-29 passthrough=no
add action=mark-connection chain=prerouting comment=PC-30 \
    new-connection-mark=PC-30 src-address=192.168.5.50
add action=mark-packet chain=prerouting connection-mark=PC-30 \
    new-packet-mark=PC-30 passthrough=no

QUEUE TYPE
/queue type
add kind=pcq name=PCQ-1Mbps pcq-classifier=dst-address pcq-rate=1024k

QUEUE TREE
/queue tree
add name=SPEEDY parent=LAN queue=default
add burst-limit=1M burst-threshold=512k burst-time=5s max-limit=786k name=\
    PC-0 packet-mark=PC-0 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-1 packet-mark=PC-1 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-2 packet-mark=PC-2 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-3 packet-mark=PC-3 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-4 packet-mark=PC-4 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-5 packet-mark=PC-5 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-6 packet-mark=PC-6 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-7 packet-mark=PC-7 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-8 packet-mark=PC-8 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-9 packet-mark=PC-9 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-10 packet-mark=PC-10 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-11 packet-mark=PC-11 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-12 packet-mark=PC-12 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-13 packet-mark=PC-13 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-14 packet-mark=PC-14 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-15 packet-mark=PC-15 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-16 packet-mark=PC-16 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-17 packet-mark=PC-17 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-18 packet-mark=PC-18 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-19 packet-mark=PC-19 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-20 packet-mark=PC-20 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-21 packet-mark=PC-21 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-22 packet-mark=PC-22 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-23 packet-mark=PC-23 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-24 packet-mark=PC-24 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-25 packet-mark=PC-25 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-26 packet-mark=PC-26 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-27 packet-mark=PC-27 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-28 packet-mark=PC-28 parent=SPEEDY queue=PCQ-1Mbps
add max-limit=786k name=PC-29 packet-mark=PC-29 parent=SPEEDY queue=PCQ-1Mbps
add burst-limit=1M burst-threshold=512k burst-time=5s max-limit=786k name=\
    PC-30 packet-mark=PC-30 parent=SPEEDY queue=PCQ-1Mbps
Previous Post Next Post