netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: ratheesh k <ratheesh.ksz@gmail.com>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: netfilter@vger.kernel.org
Subject: Re: removing black listed ip
Date: Sat, 10 Apr 2010 22:50:03 +0530	[thread overview]
Message-ID: <z2hcfeab66d1004101020w685d24b3hc2551381819ced27@mail.gmail.com> (raw)
In-Reply-To: <alpine.LSU.2.01.1004101910020.32651@obet.zrqbmnf.qr>

> xt_recent works by comparing the difference between an entry's
> timestamps and the current time with the chosen --seconds parameter.


If an ip is black listed , when it will get removed ? . How can i
remove the list .i first thought of kernel timers ( timer_list ) , but
i have to take care of race condition and it will dampen the
performace .


> What's with all this whitespace...
>

sorry . by mistake i added space .

thanks,
ratheesh

On Sat, Apr 10, 2010 at 10:42 PM, Jan Engelhardt <jengelh@medozas.de> wrote:
> On Saturday 2010-04-10 19:03, ratheesh k wrote:
>
>>Hi ,
>>
>> I need to remove black listed ip if   last seen packet is  x time
>>ago  . I have changed code , but here it is comparing with first seen
>>packet time . i need to compare last seen packet .
>
> xt_recent works by comparing the difference between an entry's
> timestamps and the current time with the chosen --seconds parameter.
>
>
>>@@ -178,6 +189,10 @@
>>               e->nstamps = e->index;
>>       e->index %= ip_pkt_list_tot;
>>       list_move_tail(&e->lru_list, &t->lru_list);
>>+
>>+
>>+
>>+
>> }
>>
>> static struct recent_table *recent_table_lookup(const char *name)
>>
>>
>
> What's with all this whitespace...
>

  reply	other threads:[~2010-04-10 17:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-10 17:03 removing black listed ip ratheesh k
2010-04-10 17:12 ` Jan Engelhardt
2010-04-10 17:20   ` ratheesh k [this message]
2010-04-10 17:42     ` Jan Engelhardt
2010-04-12  6:24       ` ratheesh k
2010-04-12 12:30         ` Jan Engelhardt
2010-04-20  2:46           ` ratheesh k
2010-04-20  8:06             ` Jan Engelhardt
2010-04-20 11:21               ` ratheesh k

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=z2hcfeab66d1004101020w685d24b3hc2551381819ced27@mail.gmail.com \
    --to=ratheesh.ksz@gmail.com \
    --cc=jengelh@medozas.de \
    --cc=netfilter@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 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).