any way to reset all marked connections when using CONNMARK?
Subsystems (3)
Hi,
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.
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.
Thanks,
Chris
Signature · 5 lines
Chris Friesen Software Developer GENBAND [email protected] www.genband.com
Quoted 3 lines · Chris Friesen
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?
How about using the conntrack userspace command-line interface?
conntrack -U -m 0
looks like it should do what you want.
Andy
Quoted 10 lines · Andrew Beverley
Quoted 3 lines · Chris Friesen
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?
How about using the conntrack userspace command-line interface?
conntrack -U -m 0
looks like it should do what you want.
Oooh, that looks perfect.
For some reason the online man pages for conntrack don't seem to be up to date...they don't have the -U option. It's listed in the package itself though.
Thanks,
Chris
Signature · 5 lines
Chris Friesen Software Developer GENBAND [email protected] www.genband.com
Quoted 10 lines · Chris Friesen
Quoted 9 lines · Andrew Beverley
Quoted 3 lines · Chris Friesen
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?
How about using the conntrack userspace command-line interface?
conntrack -U -m 0
Quoted 7 lines
Quoted 1 line
looks like it should do what you want.
Oooh, that looks perfect.
For some reason the online man pages for conntrack don't seem to be up to date...they don't have the -U option. It's listed in the package itself though.
What online manpages are you referring to?
Quoted 7 lines · Jan Engelhardt
Quoted 3 lines · Chris Friesen
For some reason the online man pages for conntrack don't seem to be up to date...they don't have the -U option. It's listed in the package itself though.
What online manpages are you referring to?
The first google result for "man conntrack" is
http://linux.die.net/man/8/conntrack
which appears out of date. The second google result appears okay.
Chris
Signature · 5 lines
Chris Friesen Software Developer GENBAND [email protected] www.genband.com
Quoted 7 lines · Chris Friesen
Quoted 6 lines · Jan Engelhardt
Quoted 3 lines · Chris Friesen
For some reason the online man pages for conntrack don't seem to be up to date...they don't have the -U option. It's listed in the package itself though.
Quoted 7 lines
Quoted 1 line
What online manpages are you referring to?
The first google result for "man conntrack" is
http://linux.die.net/man/8/conntrack
which appears out of date. The second google result appears okay.
I think the point was that these online man pages are not provided nor maintained by the Netfilter project, so they're a less reliable source of information than the man page accessed locally.
Signature · 2 lines
Offlist mail to this address is discarded unless
"/dev/rob0" or "not-spam" is in Subject: headerQuoted 12 lines · On Thursday 2011-02-17 21:24, /dev/rob0 wrote:
Quoted 11 lines · Chris Friesen
Quoted 7 lines · Jan Engelhardt
Quoted 3 lines · Chris Friesen
For some reason the online man pages for conntrack don't seem to be up to date...they don't have the -U option. It's listed in the package itself though.
What online manpages are you referring to?
The first google result for "man conntrack" is
Quoted 7 lines
Quoted 3 lines
http://linux.die.net/man/8/conntrack
which appears out of date. The second google result appears okay.
I think the point was that these online man pages are not provided nor maintained by the Netfilter project, so they're a less reliable source of information than the man page accessed locally.
Not to mention die.net is sourcing some terribly old manpages (their iptables.8 is from 1.4.1.1 or older).