From: uniplex <uniplex@maximum-linux.net>
To: netfilter <netfilter@lists.netfilter.org>
Subject: Re: -m recent
Date: Thu, 23 Jan 2003 15:59:46 +0000 [thread overview]
Message-ID: <3E301172.101@maximum-linux.net> (raw)
In-Reply-To: 20030123191505.GL484@ns.snowman.net
Stephen Frost wrote:
>>iptables -A INPUT -i eth0 -p all -m recent --name icmps --update -j DROP
>>
>>iptables -N icmps
>>iptables -A INPUT -i eth0 -p icmp -j icmps
>>iptables -A icmps -m recent --name icmps --set -j DROP
>>iptables -A icmps -j DROP
>
>
> This looks good to me.. Can you tell me what version of ipt_recent
> you're using? An old version had a bug where the --name only worked
> when it was the last option, that may be the problem.
>
> Stephen
Hey Stephen,
How can I tell what version of ipt_recent I have? I downloaded the
latest version of patch-o-matic and installed your patch from there.
I tried using --name in different places but it still doesn't seem to
work for whatever reason. Here's what I've tested with now.
iptables -A INPUT -i eth0 -p all -m recent --update -j DROP --name icmps
iptables -N icmps
iptables -A INPUT -p icmp -i eth0 -j icmps
iptables -A icmps -m limit --limit 2/hour --limit-burst 1 -j LOG
--log-level alert --log-prefix "icmp: "
iptables -A icmps -m recent --set -j DROP --name icmps
iptables -A icmps -j DROP
Thanks.
next prev parent reply other threads:[~2003-01-23 15:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-23 13:11 -m recent uniplex
2003-01-23 19:15 ` Stephen Frost
2003-01-23 15:59 ` uniplex [this message]
2003-01-23 22:40 ` Stephen Frost
2003-01-24 2:03 ` uniplex
2003-01-24 8:15 ` Fabrice MARIE
2003-01-25 1:29 ` Stephen Frost
2003-01-30 19:50 ` uniplex
2003-02-24 13:59 ` Stephen Frost
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=3E301172.101@maximum-linux.net \
--to=uniplex@maximum-linux.net \
--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.