mangle tproxy

/ip firewall mangle
add action=mark-packet chain=postrouting comment="======================Proxy-Hit======================" disabled=no dscp=12 new-packet-mark=proxy_hit \
passthrough=no
add action=mark-connection chain=prerouting comment="======================KONEKSI untuk LImit BW======================" disabled=no new-connection-mark=\
billing passthrough=yes src-address=192.168.1.10
add action=mark-connection chain=prerouting disabled=no new-connection-mark=PC-1 passthrough=yes src-address=192.168.1.11
add action=mark-packet chain=prerouting comment="======================PAKET MARK LIMIT BW======================" connection-mark=billing disabled=no \
new-packet-mark=billing passthrough=yes
add action=mark-packet chain=prerouting connection-mark=PC-1 disabled=no new-packet-mark=PC-1 passthrough=yes
add action=mark-routing chain=prerouting comment="======================TP-proxy======================" disabled=no dst-port=80,443 in-interface=ether2-local \
new-routing-mark=tproxy_rm passthrough=no protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=80,443 in-interface=ether1-proxy new-connection-mark=tproxy_cm passthrough=yes protocol=tcp \
src-address=!192.168.2.10
add action=mark-routing chain=prerouting connection-mark=tproxy_cm disabled=no in-interface=!ether1-proxy new-routing-mark=tproxy_rm passthrough=no

/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=80M name=0.Proxy_hit packet-mark=proxy_hit parent=global-out \
priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=512k name=1.DOWNSTREAM packet-mark="" parent=ether2-local \
priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=0 name=2.UPSTREAM packet-mark="" parent=ether0-public priority=\
8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=512k name=0.Billing packet-mark=billing parent=2.UPSTREAM \
priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=256k \
max-limit=512k name=1.PC_NO_1 packet-mark=PC-1 parent=1.DOWNSTREAM \
priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=512k name=1.Pc_No_1 packet-mark=PC-1 parent=2.UPSTREAM \
priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=256k \
max-limit=512k name=0.billing packet-mark=billing parent=1.DOWNSTREAM \
priority=8 queue=default
أحدث أقدم