From: "Jorge Agrelo" <jagrelo@novadevices.com>
To: Samuel Jean <sj-netfilter@cookinglinux.org>
Cc: netfilter@lists.netfilter.org
Subject: Re: Limit module accept negation?
Date: Thu, 13 Jan 2005 19:08:53 -0500 [thread overview]
Message-ID: <41E6C745.7555.2118F01@localhost> (raw)
In-Reply-To: <30044.142.169.215.10.1105539632.squirrel@142.169.215.10>
Hi Samuel
Yes, I want to limit (drop) as soon as we receive more than 1/s packet
regardless of the source address?, Is there any other way to do that without using
limit match with negation?
Regards
On 12 Jan 2005 at 9:20, Samuel Jean wrote:
> On Mon, January 10, 2005 8:08 pm, Jorge Agrelo said:
> > Can I replace this two rules
> >
> > iptables -A INPUT -p tcp --syn -m limit --limit 1/s --limit-burst 4 -j
> > ACCEPT
> > iptables -A INPUT -p tcp --syn -j DROP
> >
> > For only this one? (Using negation)
> >
> > iptables -A INPUT -p tcp --syn -m limit ! --limit 1/s --limit-burst 4 -j
> > DROP
>
> Unfortunately, you can't without a bit of hacking.
> If it happens you would, just grab ipt_limit.c and search for:
>
> /* We're underlimit */
>
> Change the return codes so it returns 0 when 'underlimit', otherwise, 1.
> Am sorry if this is straigh, I am at work.
> Note that this won't add '!' support but just doesn't match unless it
> bursts the limit.
>
> By the way, do you want to limit as soon as you receive more than 1/s packet
> regardless of the source address?
>
> >
> > Thanks in advanced
>
> HTH,
>
> Samuel
>
>
next prev parent reply other threads:[~2005-01-14 0:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-11 1:08 Limit module accept negation? Jorge Agrelo
2005-01-12 14:20 ` Samuel Jean
2005-01-14 0:08 ` Jorge Agrelo [this message]
2005-01-14 1:20 ` Samuel Jean
2005-01-14 1:24 ` Samuel Jean
2005-01-14 14:36 ` Jorge Agrelo
2005-01-14 15:06 ` Samuel Jean
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=41E6C745.7555.2118F01@localhost \
--to=jagrelo@novadevices.com \
--cc=netfilter@lists.netfilter.org \
--cc=sj-netfilter@cookinglinux.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