* Re: match limit with inverse [!]
2002-11-23 18:24 ` match limit with inverse [!] Jerome de Vivie
@ 2002-11-23 17:53 ` Cedric Blancher
2002-11-29 10:11 ` Graham - Reg.CA
0 siblings, 1 reply; 3+ messages in thread
From: Cedric Blancher @ 2002-11-23 17:53 UTC (permalink / raw)
To: Jerome de Vivie; +Cc: Graham- Reg.CA, netfilter-devel
Le sam 23/11/2002 à 19:24, Jerome de Vivie a écrit :
> Your out of luck. The patch hasn't been applied because it a kernel
> header and could disturb older versions of netfilter. The patch is under
> http://perso.wanadoo.fr/jerome.de-vivie/ipt/
However, we can emulate limit inverse with a user chain. Suppose you
want to log and drop ICMPs that are over the 1/S limit :
iptables -N inv_limit
iptables -A FORWARD -p icmp -j inv_limit
iptables -A inv_limit -m limit --limit 1/s -j RETURN \
--log-prefix "Over limit ICMP "
iptables -A inv_limit -j LOG
iptables -A inv_limit -j DROP
[...]
That's only a workaround...
--
Cédric Blancher <blancher@cartel-securite.fr>
IT systems and networks security expert - Cartel Sécurité
Phone : +33 (0)1 44 06 97 87 - Fax: +33 (0)1 44 06 97 99
PGP KeyID:157E98EE FingerPrint:FA62226DA9E72FA8AECAA240008B480E157E98EE
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: match limit with inverse [!]
[not found] <00ae01c292ed$2c125aa0$2a00a8c0@zorro>
@ 2002-11-23 18:24 ` Jerome de Vivie
2002-11-23 17:53 ` Cedric Blancher
0 siblings, 1 reply; 3+ messages in thread
From: Jerome de Vivie @ 2002-11-23 18:24 UTC (permalink / raw)
To: Graham- Reg.CA, netfilter-devel
Your out of luck. The patch hasn't been applied because it a kernel
header and could disturb older versions of netfilter. The patch is under
http://perso.wanadoo.fr/jerome.de-vivie/ipt/
I hope that core maintainer could applied it now.
Regards,
j.
"Graham- Reg.CA" wrote:
>
> Hello,
>
> Has the match limit with inverse [!] patch ever been applied to any of the
> newer versions of iptables/netfilter?
>
> I have a number of DoS attack-type situations and a few special situations
> (such as limiting outgoing user traffic) that would really benefit from
> this.
>
> Putting the exclamation mark in on the command line (as the man pages
> suggest) just seems to be ignored - so we end up dropping all packets below
> that threshold, not above it.
>
> Just wondering if limit ever had the inverse patch (or similar) added to it,
> or if I'm out of luck :(
>
> Running Kernel 2.4.18 and a pretty recent version of iptables.
>
> Thanks!
> - Graham.
--
Jérôme de Vivie
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: match limit with inverse [!]
2002-11-23 17:53 ` Cedric Blancher
@ 2002-11-29 10:11 ` Graham - Reg.CA
0 siblings, 0 replies; 3+ messages in thread
From: Graham - Reg.CA @ 2002-11-29 10:11 UTC (permalink / raw)
To: Cedric Blancher, Jerome de Vivie; +Cc: netfilter-devel
Thanks! The new workaround is hardly as convenient, but we managed to work
out a workable set of rules in the end. It would have saved us a lot of
confusion if the documentation (man iptables) of didn't imply that the "!"
rule worked.
Still it would be nice to see the proper inverse work for a later release -
the "inverse" rule is hardly intuitive.
----- Original Message -----
From: "Cedric Blancher" <blancher@cartel-securite.fr>
To: "Jerome de Vivie" <jerome.de-vivie@wanadoo.fr>
Cc: "Graham- Reg.CA" <graham@reg.ca>; <netfilter-devel@lists.netfilter.org>
Sent: Saturday, November 23, 2002 9:53 AM
Subject: Re: match limit with inverse [!]
> Le sam 23/11/2002 à 19:24, Jerome de Vivie a écrit :
> > Your out of luck. The patch hasn't been applied because it a kernel
> > header and could disturb older versions of netfilter. The patch is under
> > http://perso.wanadoo.fr/jerome.de-vivie/ipt/
>
> However, we can emulate limit inverse with a user chain. Suppose you
> want to log and drop ICMPs that are over the 1/S limit :
>
> iptables -N inv_limit
> iptables -A FORWARD -p icmp -j inv_limit
> iptables -A inv_limit -m limit --limit 1/s -j RETURN \
> --log-prefix "Over limit ICMP "
> iptables -A inv_limit -j LOG
> iptables -A inv_limit -j DROP
> [...]
>
> That's only a workaround...
>
> --
> Cédric Blancher <blancher@cartel-securite.fr>
> IT systems and networks security expert - Cartel Sécurité
> Phone : +33 (0)1 44 06 97 87 - Fax: +33 (0)1 44 06 97 99
> PGP KeyID:157E98EE FingerPrint:FA62226DA9E72FA8AECAA240008B480E157E98EE
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-29 10:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <00ae01c292ed$2c125aa0$2a00a8c0@zorro>
2002-11-23 18:24 ` match limit with inverse [!] Jerome de Vivie
2002-11-23 17:53 ` Cedric Blancher
2002-11-29 10:11 ` Graham - Reg.CA
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.