From: Stephen Frost <sfrost@snowman.net>
To: "U. George" <netbeans@gatworks.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: can this be written as one rule ?
Date: Sun, 1 Jul 2007 11:04:05 -0400 [thread overview]
Message-ID: <20070701150405.GA4887@tamriel.snowman.net> (raw)
In-Reply-To: <4687C1D4.3090704@gatworks.com>
[-- Attachment #1: Type: text/plain, Size: 359 bytes --]
* U. George (netbeans@gatworks.com) wrote:
>> $IPTABLES -t nat -A PREROUTING -i $INET_IFACE -s 121.124.176.0/20 -j DROP
>
> And so on ?
You can (ab)use ipt_recent to do it. There might be other ways but the
gist of it would be to build an ipt_recent table with those addresses at
boot and then reference it using an --rcheck or similar.
Enjoy,
Stephen
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-07-01 15:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-01 15:01 can this be written as one rule ? U. George
2007-07-01 15:04 ` Stephen Frost [this message]
2007-07-01 16:42 ` Mike Wright
2007-07-02 20:03 ` Clister
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=20070701150405.GA4887@tamriel.snowman.net \
--to=sfrost@snowman.net \
--cc=netbeans@gatworks.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox