Re: removing black listed ip

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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@xxxxxxxxxx> 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...
>
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux