Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Cedric Blancher <blancher@cartel-securite.fr>
To: "Robert P. J. Day" <rpjday@mindspring.com>
Cc: netfilter mailing list <netfilter@lists.netfilter.org>
Subject: Re: next topic:  --limit and --burst-limit
Date: 31 Oct 2002 14:51:05 +0100	[thread overview]
Message-ID: <1036072265.21852.20.camel@elendil> (raw)
In-Reply-To: <Pine.LNX.4.44.0210310553200.29866-100000@localhost.localdomain>

Le jeu 31/10/2002 à 12:00, Robert P. J. Day a écrit :
> this suggests that, if you add a rule incorporating a limit,
> a match would imply that you *haven't* exceeded the limit and
> that you don't necessarily want to take any countermeasures.

Yes it is. You match packets that are _below_ the limit. When filtering,
you usually specifiy things that are acceptable.
 
>   from one tutorial, here's the lines that deal with 
> syn-flooding protection:
> 
>   iptables -N syn-flood
>   iptables -A INPUT -i $IFACE -p tcp --syn -j syn-flood
>   iptables -A syn-flood -m limit --limit 1/s --limit-burst 4 -j RETURN
>   iptables -A syn-flood -j DROP
>   
> this seems to match the man page -- in the "syn-flood" user-defined
> chain, if you match the limit rule, you're still fine and you return.
> otherwise, you drop the packet that forced you to exceed the limit.

That's true. If you don't return, then you're over the limit anbd get
logged.

>   so, have i understood this correctly?  thanks for your patience.

On these two points, you're right.

-- 
Cédric Blancher  <blancher@cartel-securite.fr>
Consultant en sécurité des systèmes et réseaux  - Cartel Sécurité
Tél: +33 (0)1 44 06 97 87 - Fax: +33 (0)1 44 06 97 99
PGP KeyID:157E98EE  FingerPrint:FA62226DA9E72FA8AECAA240008B480E157E98EE


  reply	other threads:[~2002-10-31 13:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-30 18:47 next topic: --limit and --burst-limit Robert P. J. Day
2002-10-31  8:24 ` Cedric Blancher
2002-10-31 11:00   ` Robert P. J. Day
2002-10-31 13:51     ` Cedric Blancher [this message]
2002-10-31 15:04       ` Robert P. J. Day
2002-10-31 12:15   ` Robert P. J. Day
2002-10-31 14:04     ` Cedric Blancher
2002-10-31 14:27       ` Robert P. J. Day
2002-10-31 15:34         ` Cedric Blancher
  -- strict thread matches above, loose matches on Subject: below --
2002-10-31 14:47 mailinglists

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=1036072265.21852.20.camel@elendil \
    --to=blancher@cartel-securite.fr \
    --cc=netfilter@lists.netfilter.org \
    --cc=rpjday@mindspring.com \
    /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