All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Hanson <chanson@bluebottle.com>
To: netfilter-devel@vger.kernel.org
Subject: Suggestion: "--match recent --set --life-span <secs>"  to prevent table filling up
Date: Mon, 09 Mar 2009 15:48:39 -0700	[thread overview]
Message-ID: <49B59CC7.7080002@bluebottle.com> (raw)

Hello,

A suggestion for the match recent part of netfilter. Include a life_span 
field in the table. A host is removed from a table after it hasn't been 
seen for x seconds.

I suggest this because of the number of botnet hosts that rapidly fill 
up the /proc/net/ipt_recent tables. Sometimes an attacking host is only 
seen once in a long probe/attack.


Additional related suggestions:

Perhaps just reuse the --seconds parameter on a --set. instead of adding 
a new parameter.

Give the field a default value. (3600?)

Have a module command line parameter for changing the default value.

Use 0 for an infinite life_span.


I apologize for not being able to submit code. I tried looking at the 
source and I soon realized that my coding skills are VERY rusty.

I hope this sounds useful to you all. Keep up the good work.

Chris Hanson

             reply	other threads:[~2009-03-09 23:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-09 22:48 Chris Hanson [this message]
2009-03-10 16:13 ` Suggestion: "--match recent --set --life-span <secs>" to prevent table filling up Jan Engelhardt
     [not found]   ` <49B6BD2E.7010908@bluebottle.com>
2009-03-10 19:29     ` Jan Engelhardt
2009-03-10 20:10       ` Chris Hanson
     [not found]       ` <200903102010.n2AKAf9t003525@mi0.bluebottle.com>
2009-03-10 20:43         ` Jan Engelhardt

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=49B59CC7.7080002@bluebottle.com \
    --to=chanson@bluebottle.com \
    --cc=netfilter-devel@vger.kernel.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.