All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@riverviewtech.net>
To: Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: Preventing simple DoS attacks with ipt_recent on Kernel 2.6.9-42.ELsmp
Date: Wed, 28 Nov 2007 10:33:07 -0600	[thread overview]
Message-ID: <474D9843.9040605@riverviewtech.net> (raw)
In-Reply-To: <CC12CD48AEDA1E4B8A3F626DA84E927209CD45BA@ka-cap-sr-3601.xb.local>

On 11/28/07 10:14, Shaun Mccullagh wrote:
> iptables -A FORWARD -p tcp --dport 80 -i eth0 -m state --state NEW -m
> recent --set --name browserconn -j ACCEPT
> 
> iptables -A FORWARD -p tcp --dport 80 -i eth0 -m state --state NEW -m
> recent --rttl --update --seconds 60 --hitcount 100 --name blocked -j
> DROP

...

> Nothing appears in /proc/net/ipt_recent/blocked

...

> What am I doing wrong?

I think the problem you are seeing has to do with the difference of 
"--set" verses "--update" in the recent match.  Namely I'm not sure that 
  "--update" or "--rcheck" will actually add address to a recent list if 
they are not already in there.

> Is the nc test valid?

I'm guessing so seeing as how you are seeing packets added to the 
browserconn recent list.



Grant. . . .

  reply	other threads:[~2007-11-28 16:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-28 15:49 Reg Stateful firewall Shyam Prasad
2007-11-28 16:14 ` Preventing simple DoS attacks with ipt_recent on Kernel 2.6.9-42.ELsmp Shaun Mccullagh
2007-11-28 16:33   ` Grant Taylor [this message]
2007-11-28 16:21 ` Reg Stateful firewall Grant Taylor

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=474D9843.9040605@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --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 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.