any way to reset all marked connections when using CONNMARK?
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]
----- "Chris Friesen" <[email protected]> wrote: -----
Quoted 8 lines
We've got a scenario where we want to use CONNMARK to mark connections that have passed a large number of rules in order to allow packets from those connections to skip rules in the future (for performance reasons).
However, when we add new rules we want to ensure that all the connections need to pass the new rules as well.
Quoted 7 lines
It has been proposed to add a custom patch to clear the mark for all marked connections--is there a better way of doing this?
I thought maybe we could use the CONNMARK as a generation count and bumping it up each time a rule is added. This would require updating the bypass rule each time we modify the other rules though. If there are better options I'd like to hear them.
Using conntrack-tools might help:
conntrack --update --mark 0