All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sudheer Divakaran <sudheer@svw.com>
To: netfilter@lists.netfilter.org
Subject: recent module  --hitcount problem
Date: Mon, 07 Mar 2005 20:02:21 +0530	[thread overview]
Message-ID: <422C65F5.9010409@svw.com> (raw)

Hi,

Is there anything wrong with these commands?.  It seems that the recent 
module (0.3.1) is not considering  the '--hitcount 10' attribute if the 
machine is running for a long time (in the long run).  But when I tested 
these rules from another machine, it worked properly.  But on the live 
server, iptables blocks hosts if they attempted to access the SMTP port 
within 60 seconds for a second time.

$IPT -A SMTP_HAMMER -j LOG --log-level debug
$IPT -A SMTP_HAMMER -m recent --set --name hammer -j DROP

$IPT -A CHECK_SMTP    -m recent     --rcheck --seconds 480 --name hammer 
    -j DROP
$IPT -A CHECK_SMTP    -m recent     --rcheck --seconds 60  --hitcount 
10     -j SMTP_HAMMER
$IPT -A CHECK_SMTP    -m recent     --update                      
           -j ACCEPT
$IPT -A CHECK_SMTP    -m recent     --set                          
          -j ACCEPT


$IPT -A INPUT -i $WAN_IFACE    -p tcp --dport 25 -m state --state NEW  
    -j CHECK_SMTP


--

Thanks
Sudheer



             reply	other threads:[~2005-03-07 14:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-07 14:32 Sudheer Divakaran [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-02-13 23:49 recent module --hitcount problem william

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=422C65F5.9010409@svw.com \
    --to=sudheer@svw.com \
    --cc=netfilter@lists.netfilter.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.