Never ming What am I using it for, is this the way we need to mangle packets.
0 chain=postrouting out-interface=SBB action=mark-connection new-connection-mark=UP_ALL passthrough=yes 1 chain=postrouting out-interface=SBB connection-mark=UP_ALL action=mark-packet new-packet-mark=UP_ALL_P passthrough=yes 2 chain=prerouting in-interface=SBB action=mark-connection new-connection-mark=DOWNLOAD_ALL passthrough=yes 3 chain=prerouting in-interface=SBB connection-mark=DOWNLOAD_ALL action=mark-packet new-packet-mark=DOWNLOAD_ALL_P passthrough=yes 4 ;;; HTTPUP chain=postrouting out-interface=SBB protocol=tcp dst-port=80 action=mark-connection new-connection-mark=HTTPUPLOAD passthrough=yes 5 chain=postrouting out-interface=SBB protocol=tcp connection-mark=HTTPUPLOAD connection-bytes=0-512000 action=mark-packet new-packet-mark=FIRST512UP passthrough=no 6 chain=postrouting out-interface=SBB protocol=tcp connection-mark=HTTPUPLOAD action=mark-packet new-packet-mark=HTTPUPLOADP passthrough=no 7 ;;; HTTPDOWN chain=prerouting in-interface=SBB protocol=tcp src-port=80 action=mark-connection new-connection-mark=HTTPDOWNLOAD passthrough=yes 8 chain=prerouting in-interface=SBB connection-mark=HTTPDOWNLOAD action=mark-packet new-packet-mark=HTTPDOWNLOAD passthrough=yes
These rules are counting nice and equaly.
But just when they are in this order:
1. Connection Mark + Packet Mark
It wont count right if I put all connection marks first and then packet marks, nevermind it works.
But If I put simple queue with a packet mark DOWNLOAD_ALL_P, it count few bytes, and in statistics of that packet mart traffic is 800kbps. Why ?
Also queue tree wont work ?
Can someone please explain this.
I read IP FLOW, but just dont know why it wont work.