Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "J. Bakshi" <joydeep@infoservices.in>
To: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
Cc: netfilter@vger.kernel.org
Subject: Re: How to view blacklist ip ?
Date: Mon, 07 Sep 2009 13:13:47 +0530	[thread overview]
Message-ID: <4AA4B9B3.6020409@infoservices.in> (raw)
In-Reply-To: <4AA4B741.7010209@plouf.fr.eu.org>

Pascal Hambourg wrote:
> Hello,
>
> J. Bakshi a écrit :
>   
>> iptables -A INPUT -m recent --name blacklist --rcheck --seconds
>> $BLACKLIST_INTERVAL -j DROP
>>
>> and it is working really well. But is there any way to manage the
>> blacklisted ip ? Manage means
>>     
>
> man iptables
>
>   
>> 1> view the ips which are blacklisted
>>     
>
> Read /proc/net/ipt_recent/<name>.
>
>   

Great !!!. Thanks a lot. Now I can write a shell script to manage the IPs.



>> 2> manually remove an IP from blacklist
>>     
>
> Write "-a.b.c.d" into /proc/net/ipt_recent/<name> where a.b.c.d is the
> address to remove. You can also write "clear" to flush the list.
>
>   
>> 3> manually insert an IP as blacklist
>>     
>
> Write "+a.b.c.d" or "a.b.c.d" into /proc/net/ipt_recent/<name> where
> a.b.c.d is the address to add or update.
>
> Warning : ipt_recent may have been renamed xt_recent in recent kernels.
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>   


  reply	other threads:[~2009-09-07  7:43 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-07  5:57 How to view blacklist ip ? J. Bakshi
2009-09-07  6:01 ` Anatoly Muliarski
2009-09-07  6:09   ` J. Bakshi
2009-09-07  7:33 ` Pascal Hambourg
2009-09-07  7:43   ` J. Bakshi [this message]
2009-09-07  7:59     ` J. Bakshi
2009-09-07  8:14       ` Pascal Hambourg
2009-09-07  8:26         ` J. Bakshi
2009-09-07  9:20           ` J. Bakshi
2009-09-07 10:34             ` Pascal Hambourg
2009-09-07 10:47               ` J. Bakshi
2009-09-07 11:14                 ` Pascal Hambourg
2009-09-07 12:20               ` J. Bakshi
2009-09-07 18:37                 ` Anatoly Muliarski
2009-09-08  4:35                   ` J. Bakshi
2009-09-08  5:28                     ` J. Bakshi
2009-09-08  7:48                       ` Anatoly Muliarski

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=4AA4B9B3.6020409@infoservices.in \
    --to=joydeep@infoservices.in \
    --cc=netfilter@vger.kernel.org \
    --cc=pascal.mail@plouf.fr.eu.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