netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nf-next: condition
@ 2010-04-21 13:33 Jan Engelhardt
  2010-04-21 13:33 ` [PATCH] netfilter: xtables: inclusion of xt_condition Jan Engelhardt
  0 siblings, 1 reply; 17+ messages in thread
From: Jan Engelhardt @ 2010-04-21 13:33 UTC (permalink / raw)
  To: kaber; +Cc: netfilter-devel



Git ate my file, or I did not port it to the kernel yet.

I hope this is it, now.


The following changes since commit d97a9e47ba148cfc41e354c5cd241f472273207c:
  Jan Engelhardt (1):
        netfilter: x_tables: move sleeping allocation outside BH-disabled region

are available in the git repository at:

  git://dev.medozas.de/linux condition

Jan Engelhardt (1):
      netfilter: xtables: inclusion of xt_condition

 include/linux/netfilter/Kbuild         |    1 +
 include/linux/netfilter/xt_condition.h |   14 ++
 net/netfilter/Kconfig                  |    8 +
 net/netfilter/Makefile                 |    1 +
 net/netfilter/xt_condition.c           |  229 ++++++++++++++++++++++++++++++++
 5 files changed, 253 insertions(+), 0 deletions(-)
 create mode 100644 include/linux/netfilter/xt_condition.h
 create mode 100644 net/netfilter/xt_condition.c

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: [PATCH] netfilter: xtables: inclusion of xt_condition
@ 2010-07-16 11:10 Luciano Coelho
  2010-07-16 11:20 ` Jan Engelhardt
  0 siblings, 1 reply; 17+ messages in thread
From: Luciano Coelho @ 2010-07-16 11:10 UTC (permalink / raw)
  To: jengelh; +Cc: kaber, netfilter-devel

Hi Jan,

Jan Engelhardt <jengelh@medozas.de> writes:
> On Thursday 2010-04-22 13:14, Patrick McHardy wrote:
> 
> > This looks better, thanks. A few remaining questions about things
> > I missed previously:
> 
> Will deal with it shortly.

Are you planning to resend this patch with the changes Patrick
suggested?

As you may have seen in my earlier rfc email, I'm interested in
something similar to the condition match.  I'm not sure whether the best
approach is to create a CONDITION target where we can set the condition
variable in the iptables itself or if it is better to create a new
"variable match" and an accompanying "VARIABLE target" that keeps the
variables in memory, instead of using procfs.

Any suggestions?


-- 
Cheers,
Luca.


^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: [PATCH] netfilter: xtables: inclusion of xt_condition
@ 2010-07-17  6:32 Luciano.Coelho
  0 siblings, 0 replies; 17+ messages in thread
From: Luciano.Coelho @ 2010-07-17  6:32 UTC (permalink / raw)
  To: jengelh; +Cc: kaber, netfilter-devel

----- Original message -----
> 
> On Friday 2010-07-16 14:16, Luciano Coelho wrote:
> > > > 
> > > > Yes, of course, but I meant without exporting it to procfs. ;) That
> > > > would probably make the code a lot simpler (actually I can't
> > > > imagine
> a
> > > > simpler match/target than a "variable" match/target ;)
> > > 
> > > Well, if not procfs, what should influence this anonymous variable?
> > > The weather? (No really, that came up at last NFWS. Using a
> userspace 
> > > program, you can write into the procfs file and thus firewall based
> upon 
> > > storm and thunder....)
> > 
> > Heh! :)
> > 
> > What I need is a state variable that is set and read by netfilter
> > tables.   The idea is to have a state variable high_throughput that will
> > be set to true (high) or false (low) depending on the rateest results.
> > This would be used to prevent multiple NFLOG events for the same state
> > (say, "HIGH") from being sent to userspace.
> 
> We have exactlt that -- the nfmark, accessible via -j MARK.

Yes, but with nfmark we have to mangle every packet. I was thinking about a "global" mark, that is not associated with either packets nor connections.

That would be the condition match plus a way to set it with netfilter rules.

--
Cheers,
Luca

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2010-07-17  6:34 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-21 13:33 nf-next: condition Jan Engelhardt
2010-04-21 13:33 ` [PATCH] netfilter: xtables: inclusion of xt_condition Jan Engelhardt
2010-04-21 13:39   ` Patrick McHardy
2010-04-22  0:05     ` Jan Engelhardt
2010-04-22 10:55       ` Patrick McHardy
2010-04-22 11:14       ` Patrick McHardy
2010-04-22 11:24         ` Patrick McHardy
2010-04-22 11:27         ` Jan Engelhardt
2010-04-22 11:29           ` Patrick McHardy
2010-04-22 11:33             ` Jan Engelhardt
  -- strict thread matches above, loose matches on Subject: below --
2010-07-16 11:10 Luciano Coelho
2010-07-16 11:20 ` Jan Engelhardt
2010-07-16 11:31   ` Luciano Coelho
2010-07-16 11:54     ` Jan Engelhardt
2010-07-16 12:16       ` Luciano Coelho
2010-07-16 19:14         ` Jan Engelhardt
2010-07-17  6:32 Luciano.Coelho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).