netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* netfilter: ct_extend: alloc space for xt_portscan
@ 2009-01-08  8:24 Jan Engelhardt
  2009-01-08 17:11 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2009-01-08  8:24 UTC (permalink / raw)
  To: kaber; +Cc: Netfilter Developer Mailing List

parent b58602a4bac012b5f4fc12fe6b46ab237b610d5d
commit 7634e5f586394eafc85973712ff11e60a9ae2f70
Author: Jan Engelhardt <jengelh@medozas.de>
Date:   Thu Jan 8 09:20:03 2009 +0100

netfilter: ct_extend: alloc space for xt_portscan

The out-of-tree xt_portscan module currently (ab)uses skb->mark and
nfct->mark to store its state, but such may collide with
user-specified marks.

Using nfct_extend alleviates that problem and hopefully paves way
for inclusion of the module.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
 include/net/netfilter/nf_conntrack_extend.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/net/netfilter/nf_conntrack_extend.h b/include/net/netfilter/nf_conntrack_extend.h
index da8ee52..389794a 100644
--- a/include/net/netfilter/nf_conntrack_extend.h
+++ b/include/net/netfilter/nf_conntrack_extend.h
@@ -8,6 +8,7 @@ enum nf_ct_ext_id
 	NF_CT_EXT_HELPER,
 	NF_CT_EXT_NAT,
 	NF_CT_EXT_ACCT,
+	NF_CT_EXT_PORTSCAN, /* xt_portscan state */
 	NF_CT_EXT_NUM,
 };
 


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

* Re: netfilter: ct_extend: alloc space for xt_portscan
  2009-01-08  8:24 netfilter: ct_extend: alloc space for xt_portscan Jan Engelhardt
@ 2009-01-08 17:11 ` Pablo Neira Ayuso
  2009-01-12  4:07   ` Patrick McHardy
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Neira Ayuso @ 2009-01-08 17:11 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: kaber, Netfilter Developer Mailing List

Jan Engelhardt wrote:
> parent b58602a4bac012b5f4fc12fe6b46ab237b610d5d
> commit 7634e5f586394eafc85973712ff11e60a9ae2f70
> Author: Jan Engelhardt <jengelh@medozas.de>
> Date:   Thu Jan 8 09:20:03 2009 +0100
> 
> netfilter: ct_extend: alloc space for xt_portscan
> 
> The out-of-tree xt_portscan module currently (ab)uses skb->mark and
> nfct->mark to store its state, but such may collide with
> user-specified marks.
> 
> Using nfct_extend alleviates that problem and hopefully paves way
> for inclusion of the module.
> 
> Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
> ---
>  include/net/netfilter/nf_conntrack_extend.h |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/include/net/netfilter/nf_conntrack_extend.h b/include/net/netfilter/nf_conntrack_extend.h
> index da8ee52..389794a 100644
> --- a/include/net/netfilter/nf_conntrack_extend.h
> +++ b/include/net/netfilter/nf_conntrack_extend.h
> @@ -8,6 +8,7 @@ enum nf_ct_ext_id
>  	NF_CT_EXT_HELPER,
>  	NF_CT_EXT_NAT,
>  	NF_CT_EXT_ACCT,
> +	NF_CT_EXT_PORTSCAN, /* xt_portscan state */
>  	NF_CT_EXT_NUM,
>  };

Sorry, I would not reserve an entry unless I know what xt_portscan is.

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers

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

* Re: netfilter: ct_extend: alloc space for xt_portscan
  2009-01-08 17:11 ` Pablo Neira Ayuso
@ 2009-01-12  4:07   ` Patrick McHardy
  2009-01-12  4:16     ` Jan Engelhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick McHardy @ 2009-01-12  4:07 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: Jan Engelhardt, Netfilter Developer Mailing List

Pablo Neira Ayuso wrote:
> Jan Engelhardt wrote:
>> parent b58602a4bac012b5f4fc12fe6b46ab237b610d5d
>> commit 7634e5f586394eafc85973712ff11e60a9ae2f70
>> Author: Jan Engelhardt <jengelh@medozas.de>
>> Date:   Thu Jan 8 09:20:03 2009 +0100
>>
>> netfilter: ct_extend: alloc space for xt_portscan
>>
>> The out-of-tree xt_portscan module currently (ab)uses skb->mark and
>> nfct->mark to store its state, but such may collide with
>> user-specified marks.
>>
>> Using nfct_extend alleviates that problem and hopefully paves way
>> for inclusion of the module.
>>
> 
> Sorry, I would not reserve an entry unless I know what xt_portscan is.

I feel the same way. And I would like to know why it needs
connection state. That seems counterintuitive to a portscan
detector, which is by definition trying to detect something
happening in multiple connections.

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

* Re: netfilter: ct_extend: alloc space for xt_portscan
  2009-01-12  4:07   ` Patrick McHardy
@ 2009-01-12  4:16     ` Jan Engelhardt
  2009-01-12  4:18       ` Patrick McHardy
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2009-01-12  4:16 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: Pablo Neira Ayuso, Netfilter Developer Mailing List


On Monday 2009-01-12 05:07, Patrick McHardy wrote:
>>>
>>> The out-of-tree xt_portscan module currently (ab)uses skb->mark and
>>> nfct->mark to store its state, but such may collide with
>>> user-specified marks.
>>>
>>> Using nfct_extend alleviates that problem and hopefully paves way
>>> for inclusion of the module.
>>
>> Sorry, I would not reserve an entry unless I know what xt_portscan is.

http://article.gmane.org/gmane.linux.kernel/502344

> I feel the same way. And I would like to know why it needs
> connection state. That seems counterintuitive to a portscan
> detector, which is by definition trying to detect something
> happening in multiple connections.

Is it so? Maybe it should be called portscantype then, but what's in a name.

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

* Re: netfilter: ct_extend: alloc space for xt_portscan
  2009-01-12  4:16     ` Jan Engelhardt
@ 2009-01-12  4:18       ` Patrick McHardy
  0 siblings, 0 replies; 5+ messages in thread
From: Patrick McHardy @ 2009-01-12  4:18 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Pablo Neira Ayuso, Netfilter Developer Mailing List

Jan Engelhardt wrote:
> On Monday 2009-01-12 05:07, Patrick McHardy wrote:
>>>> The out-of-tree xt_portscan module currently (ab)uses skb->mark and
>>>> nfct->mark to store its state, but such may collide with
>>>> user-specified marks.
>>>>
>>>> Using nfct_extend alleviates that problem and hopefully paves way
>>>> for inclusion of the module.
>>> Sorry, I would not reserve an entry unless I know what xt_portscan is.
> 
> http://article.gmane.org/gmane.linux.kernel/502344

Just send the patch please.

> 
>> I feel the same way. And I would like to know why it needs
>> connection state. That seems counterintuitive to a portscan
>> detector, which is by definition trying to detect something
>> happening in multiple connections.
> 
> Is it so? Maybe it should be called portscantype then, but what's in a name.
> 


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

end of thread, other threads:[~2009-01-12  4:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-08  8:24 netfilter: ct_extend: alloc space for xt_portscan Jan Engelhardt
2009-01-08 17:11 ` Pablo Neira Ayuso
2009-01-12  4:07   ` Patrick McHardy
2009-01-12  4:16     ` Jan Engelhardt
2009-01-12  4:18       ` Patrick McHardy

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).