From: Mr Dash Four <mr.dash.four@googlemail.com>
To: Pandu Poluan <pandu@poluan.info>
Cc: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
"netfilter@vger.kernel.org" <netfilter@vger.kernel.org>
Subject: Re: ipset -R
Date: Thu, 24 Feb 2011 12:18:39 +0000 [thread overview]
Message-ID: <4D664C9F.3020701@googlemail.com> (raw)
In-Reply-To: <AANLkTi=06RAwFaiQzjiTMmJaoy+EgXSbq3UdOfonH4UQ@mail.gmail.com>
> What if:
>
> -m set ! --match-set $WHITELIST src -m set --match-set $BLACKLIST src -j DROP
>
Yeah, never thought of that before, thanks, though this would increase
processing time as I have to include that extra 'whitelist' non-match in
every iptables '--match-set' statement I have where my blacklist sets
are involved (and I have quite a lot of them!). It would be better if I
just delete the whitelist members permanently once at the beginning and
just forget about it (though as Jozsef hinted yesterday that may not
work in 5.x and 6 any more - see below).
The second statement (in both of your posts) won't be needed as I simply
propagate the resulting non-match throughout the ip chain (the packets
therefore could be dropped for a variety of other reasons regardless of
whether they belong to the 'whitelist' or not, which is what I wanted to
have in a first place).
Jozsef, you mentioned yesterday that ipset 5.x (and I presume 6.0+ also)
does not implement ip range 'readjustment' any more. If so, what happens
when I list the set below:
ipset -F test
ipset -A test 10.1.1.0/24
ipset -D test 10.1.1.12
ipset -L test
> -m set --match-set $WHITELIST src -j ACCEPT
>
That won't be needed as I simply want the packet to be propagated down
the ip chain as normal (the packet could be dropped for other reasons
and the fact that it belongs to the whitelist won't matter - its sole
purpose is for punching holes in my blacklist, then it should be treated
as any other packet).
next prev parent reply other threads:[~2011-02-24 12:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-23 0:58 ipset -R Mr Dash Four
2011-02-23 19:20 ` Jozsef Kadlecsik
2011-02-23 22:58 ` Mr Dash Four
2011-02-24 0:05 ` Pandu Poluan
2011-02-24 5:16 ` Pandu Poluan
2011-02-24 12:18 ` Mr Dash Four [this message]
2011-02-25 8:38 ` Jozsef Kadlecsik
2011-02-25 13:27 ` Mr Dash Four
2011-02-25 14:06 ` Jozsef Kadlecsik
2011-02-25 16:13 ` Mr Dash Four
2011-02-25 22:22 ` Jozsef Kadlecsik
2011-02-26 13:35 ` Mr Dash Four
2011-02-25 14:19 ` Pandu Poluan
2011-02-25 16:27 ` Mr Dash Four
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=4D664C9F.3020701@googlemail.com \
--to=mr.dash.four@googlemail.com \
--cc=kadlec@blackhole.kfki.hu \
--cc=netfilter@vger.kernel.org \
--cc=pandu@poluan.info \
/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;
as well as URLs for NNTP newsgroup(s).