I have two chians:
Chain OUTPUT (policy ACCEPT 68688 packets, 12M bytes)
pkts bytes target prot opt in out source destination
146 54635 MARK tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:6532 MARK set 0xfffc
146 54635 MARK tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:6532 MARK set 0x5
When I iptables -t mangle -m connmark --mark 0x5 -Z
it will zero both 0xfffc and 0x5's counter, how to only reset the 0x5 chain's bytes counter?
Specifying the rule by number seems to work, i.e.
The following should give you the rule number(s) of rules matching a certain regex: