http://wiki.mikrotik.com/wiki/Queue_wit ... _Web-Proxy
i applied this example as it is , but with changes to Qtree in order to test the difference between the direct packet mark and the proxy packet mark , i tested this config with downloading a file of 5MB which was direct download , in the Qtree i found that the proxy rate reaches the MAX while the direct rate still as it is !!!!!! somthing strange !!!!!! it should be vise versa that was i expect ... and here is the config i copied from WIKI and pictures in real time when that 5MB file was downloading :
MANGLE :
Code: Select all
1 ;;; Upload
chain=prerouting in-interface=localnet src-address=192.168.1.0/24
protocol=tcp p2p=!all-p2p action=mark-packet new-packet-mark=Up-Packet
passthrough=no
2 ;;; Download
chain=forward src-address=192.168.1.0/24 protocol=tcp p2p=!all-p2p
action=mark-connection new-connection-mark=users-con passthrough=yes
3 chain=forward in-interface=internet protocol=tcp connection-mark=users-co>
action=mark-packet new-packet-mark=down-packet passthrough=no
4 ;;; Proxy Marking
chain=output out-interface=localnet dst-address=192.168.1.0/24
protocol=tcp action=mark-packet new-packet-mark=Proxy-down
passthrough=no
Code: Select all
1 name="2-Int-up" parent=global-in packet-mark=Up-Packet limit-at=160000
queue=pcq-upload priority=2 max-limit=160000 burst-limit=0
burst-threshold=0 burst-time=0s
2 name="1-Local-down" parent=localnet packet-mark=down-packet
limit-at=600000 queue=pcq-download priority=2 max-limit=600000
burst-limit=0 burst-threshold=0 burst-time=0s
3 name="3-Proxy download" parent=localnet packet-mark=Proxy-down
limit-at=750000 queue=pcq-download priority=2 max-limit=750000
burst-limit=0 burst-threshold=0 burst-time=0s