should read: chain=prerouting connection-mark=DOWNLOAD action=mark-packet new-packet-mark=DOWNLOAD_P passthrough=yes
You already specified in rule 2 your address requirements… Also - do you have addresses in your TWI list?
Also in the case of what you are doing… I don’t usually specify the src address (rule 2) I would specify the incoming interface instead…much ‘cleaner’ that way.
I tried with in out interface and without connection list but id doesnt work I mean it counts something but connectiom mark counter and packet mark counter ar not counting equally.
I solved download marking with POSTROUTING chain .
Titus -
This is the type of marking I do in Mangle… This marks the particualr type of traffic. This is not all of the rules this is just a sample to see if this is what you are looking for… After the traffic is marked then you can do other things to it… I am not sure how fine you want your control to be.
I tried with in out interface and without connection list but id doesnt work I mean it counts something but connectiom mark counter and packet mark counter ar not counting equally
You are probably never going to get the counters to count exactly equal. There will always be connections that get dropped, probes, scans, all kinds of things.
Titus -
This is the type of marking I do in Mangle… This marks the particualr type of traffic. This is not all of the rules this is just a sample to see if this is what you are looking for… After the traffic is marked then you can do other things to it… I am not sure how fine you want your control to be.
I tried with in out interface and without connection list but id doesnt work I mean it counts something but connectiom mark counter and packet mark counter ar not counting equally
You are probably never going to get the counters to count exactly equal. There will always be connections that get dropped, probes, scans, all kinds of things.