All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira <pablo@eurodev.net>
To: Josh Samuelson <josamue1@wsc.edu>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: [PATCH] new match extension `flow'
Date: Wed, 10 Nov 2004 19:12:11 +0100	[thread overview]
Message-ID: <419259FB.9080008@eurodev.net> (raw)
In-Reply-To: <20041108025241.GA4850@wsc.edu>

Josh,

Josh Samuelson wrote:

>>Some comments:
>>
>>    
>>
>>>diff -Pru linux-2.6.9/include/linux/netfilter_ipv4/ip_cte_flow.h 
>>>linux-2.6.9-flow/include/linux/netfilter_ipv4/ip_cte_flow.h
>>>--- linux-2.6.9/include/linux/netfilter_ipv4/ip_cte_flow.h	1969-12-31 
>>>18:00:00.000000000 -0600
>>>+++ linux-2.6.9-flow/include/linux/netfilter_ipv4/ip_cte_flow.h 2004-11-03 
>>>19:10:13.000000000 -0600
>>>
>>>
>>>      
>>>
>>I see two possibilities here:
>>
>>a) move ip_cte_flow.[h|c] to ipt_flow.[h|c], matches always fit in a file.
>>b) rename ip_cte_flow to ip_conntrack_flow_stats, this could be a module 
>>which generates stats about current connections going through the firewall.
>>
>>I need to give more spins to this issue.
>>
>>Any comments?
>>
>>Pablo
>>    
>>
>
>In regards to ip_cte_flow.[h|c], I wasn't sure how to handle this module
>with respect to the filesystem namespace.  Those files don't provide
>any of the match functionality; it just tracks the flows from the CTE
>API, exports a few functions, the linked list of flows and provides
>"/proc/net/ip_cte_flow" file.  All of which I'm sure you know by the
>source, but just to provide some context for those who perhaps haven't
>glanced at it.  The main reason I called ip_cte_flow was because it's
>built on/requires 'CTE' functionality.  I figure there is the
>potential for a lot of modules needing the CTE API
>

At this moment I can't imagine any other match/target which could use 
this CTE API, do you have anything in mind? I mean, I think that if only 
the flow match uses it (and noone else could benefit of it), it should 
go inside the flow match. In case that someone else could use it, then 
it makes sense for me to provide such API.

> and perhaps the need
>to separate those files that require it into a differing filesystem
>namespace that can't really be classified as a match/target, etc?
>If you prefer ip_conntrack_flow_stats, I'm really not partial to
>anything.
>  
>

I don't mind about the name either. I think that maybe it could be used 
to generate statistics about the current connections going through the 
firewall, in that case it makes sense creating a module in the namespace 
of ip_conntrack_whatever.

But I think that those statistics could be done with an user space 
program via ctnetlink API (netlink sockets), so this makes me thinks 
that we should put all the stuff in a single ipt_flow file.

>The ipt_flow.[h|c] file builds on top of the prior module to provide the
>match functionality and to track network/mask based flows.  I separated the
>two because I can see the need to track the flows via /proc outside of the
>iptables match.  I.e. to just have a quick glance at who may be responsible
>for a sudden burst of flows.  Or to allow for other match modules
>to build on top of it in ways that my simple match module lacks, etc.
>
>Those are my thoughts on why I did things the way I did.  :)
>  
>

nice, see your next email :)

Pablo

  reply	other threads:[~2004-11-10 18:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-28  2:05 [PATCH] new match extension `flow' Josh Samuelson
2004-10-28 20:15 ` Josh Samuelson
2004-10-29 19:32 ` Pablo Neira
2004-10-31  6:38   ` Josh Samuelson
2004-10-31 14:41     ` Pablo Neira
2004-11-04  2:20       ` Josh Samuelson
2004-11-06 15:19         ` Pablo Neira
2004-11-08  2:52           ` Josh Samuelson
2004-11-10 18:12             ` Pablo Neira [this message]
2004-11-13 22:12         ` Pablo Neira

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=419259FB.9080008@eurodev.net \
    --to=pablo@eurodev.net \
    --cc=josamue1@wsc.edu \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.