From: Mr Dash Four <mr.dash.four@googlemail.com>
To: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [ANNOUNCE] ipset 6.6 released
Date: Wed, 25 May 2011 02:58:24 +0100 [thread overview]
Message-ID: <4DDC6240.7050701@googlemail.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1105241039080.1846@blackhole.kfki.hu>
> Userspace changes:
> - Restore with bitmap:port and list:set types did not work, fixed
>
Having had the chance to test this now, I can say that it works, and
what's more - the loading performance is much, much better - all my sets
now load in about 2-3 seconds, while with the 4.5 version it took in
excess of 10 minutes, completely hogging my CPU in the process. I
haven't had the chance yet to judge the matching performance, but this
is what I will do in the coming days.
I have found a bug, however. :-\
When I have multiple sets of different type to restore, each restore
file normally ends with "COMMIT" statement for ipset to commit the whole
transaction, or so I thought. If there is a mistake (syntax or any
other) somewhere in the restore file, which prevents the restore
process, ipset already commits everything up to that point, which I
think is wrong.
For example, if I have this:
n privileged-ports bitmap:port range 1-1023 timeout 0
a privileged-ports 1-1023
n test-ports bitmap:port range 12770-19999 timeout 0
a test-ports 20000-30000
a test-ports 19999
n test-port bitmap:port range 29950-29950 timeout 0
a test-port 29950
COMMIT
There is an obvious error in line 4 above ("a test-ports 20000-30000" -
this is out of the defined range for this set) - ipset should have
aborted the whole transaction and not committed anything, but in
practice, privileged-ports set is already registered and its members are
already added.
Apart from the obvious error of ipset committing before the actual
"COMMIT" has taken place, this raises another issue when I actually try
to reload this file - I will get an error straight away as
privileged-ports is already registered and that shouldn't be the case.
Thought to let you know.
next prev parent reply other threads:[~2011-05-25 1:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-24 8:48 [ANNOUNCE] ipset 6.6 released Jozsef Kadlecsik
2011-05-24 11:09 ` Mr Dash Four
2011-05-24 11:44 ` Jozsef Kadlecsik
2011-05-24 11:54 ` Mr Dash Four
2011-05-24 12:19 ` Jozsef Kadlecsik
2011-05-24 12:22 ` Mr Dash Four
2011-05-24 12:31 ` Jozsef Kadlecsik
2011-05-25 2:33 ` Mr Dash Four
2011-05-25 1:58 ` Mr Dash Four [this message]
2011-05-25 7:23 ` Jozsef Kadlecsik
2011-05-25 8:32 ` 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=4DDC6240.7050701@googlemail.com \
--to=mr.dash.four@googlemail.com \
--cc=kadlec@blackhole.kfki.hu \
--cc=netfilter-devel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).