Skip to contentSkip to conversation

libnetfilter_conntrack 0.0.98 release

ANNOUNCE Pablo Neira Ayuso 2 participants 4 messages Nov 29, 2008 – Dec 1, 2008 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

Hi!

The netfilter project proudly presents libnetfilter_conntrack-0.0.98.

libnetfilter_conntrack is a userspace library providing a programming interface (API) to the in-kernel connection tracking state table. This library requires a linux kernel >= 2.6.18.

This release includes one major bugfix, a couple of minor fixes, the new attribute group API and cleanups. See ChangeLog for more details.

You can download it from:

http://www.netfilter.org/projects/libnetfilter_conntrack/
ftp://ftp.netfilter.org/pub/libnetfilter_conntrack/

Pablo,
on behalf of the Netfilter Project.

Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers

Pablo Neira Ayuso (13):
objopt: use indirect calls instead of switch
API: use of __builtin_expect in error checking paths
snprintf: fix compilation warning in 64-bits platforms
groups: add attribute group API
API: add nfct_attr_is_set_array function
version: bump to 0.0.98
src: set specific array size for the API
qa: add test file to check for missing indirect function calls
helper: fix missing copy function for helper name
bsf: major rework of the BSF generation code
bsf: remove unnecessary function inline
api: fix bogus netlink flags in nfct_build_query
api: fix bogus netlink flags in nfexp_build_query

#1 lore raw
Quoted 1 line · Pablo Neira Ayuso

Hi!

Hey :)

Quoted 1 line

The netfilter project proudly presents libnetfilter_conntrack-0.0.98.

After upgrading to 0.0.98 and restarting conntrackd, I constantly get such messages on the backup firewall, even after restarting conntrackd on both firewalls once again:

2008-11-30 10:40:08 +01:00; hafw2; daemon.warning; conntrack-tools[29154]: Received seq=1228038103 before expected seq=1228039271
2008-11-30 10:40:09 +01:00; hafw2; daemon.warning; conntrack-tools[29154]: Received seq=1228038104 before expected seq=1228039271
2008-11-30 10:40:10 +01:00; hafw2; daemon.warning; conntrack-tools[29154]: Received seq=1228038105 before expected seq=1228039273
2008-11-30 10:40:11 +01:00; hafw2; daemon.warning; conntrack-tools[29154]: Received seq=1228038106 before expected seq=1228039274

The numbers look kinda confusing to me.

What's wrong? :)

Signature · 3 lines
Regards,
Wolfram Schlich <[email protected]>
Gentoo Linux * http://dev.gentoo.org/~wschlich/
#2 lore raw
Quoted 4 lines · Wolfram Schlich

After upgrading to 0.0.98 and restarting conntrackd, I constantly get such messages on the backup firewall, even after restarting conntrackd on both firewalls once again:

Quoted 8 lines
2008-11-30 10:40:08 +01:00; hafw2; daemon.warning; conntrack-tools[29154]: Received seq=1228038103 before expected seq=1228039271
2008-11-30 10:40:09 +01:00; hafw2; daemon.warning; conntrack-tools[29154]: Received seq=1228038104 before expected seq=1228039271
2008-11-30 10:40:10 +01:00; hafw2; daemon.warning; conntrack-tools[29154]: Received seq=1228038105 before expected seq=1228039273
2008-11-30 10:40:11 +01:00; hafw2; daemon.warning; conntrack-tools[29154]: Received seq=1228038106 before expected seq=1228039274

The numbers look kinda confusing to me.

What's wrong? :)

Interesting... it went away after rebooting both machines at once.

Signature · 3 lines
Regards,
Wolfram Schlich <[email protected]>
Gentoo Linux * http://dev.gentoo.org/~wschlich/
author maintainer
#3 lore raw

conntrackd reports message before expected seq [was Re: [ANNOUNCE] libnetfilter_conntrack 0.0.98 release]

Hi Wolfram,

Quoted 10 lines · Wolfram Schlich
Quoted 9 lines · Wolfram Schlich

After upgrading to 0.0.98 and restarting conntrackd, I constantly get such messages on the backup firewall, even after restarting conntrackd on both firewalls once again:

2008-11-30 10:40:08 +01:00; hafw2; daemon.warning; conntrack-tools[29154]: Received seq=1228038103 before expected seq=1228039271
2008-11-30 10:40:09 +01:00; hafw2; daemon.warning; conntrack-tools[29154]: Received seq=1228038104 before expected seq=1228039271
2008-11-30 10:40:10 +01:00; hafw2; daemon.warning; conntrack-tools[29154]: Received seq=1228038105 before expected seq=1228039273
2008-11-30 10:40:11 +01:00; hafw2; daemon.warning; conntrack-tools[29154]: Received seq=1228038106 before expected seq=1228039274
Quoted 5 lines
Quoted 3 lines

The numbers look kinda confusing to me.

What's wrong? :)

Interesting... it went away after rebooting both machines at once.

There are two possible reasons for this:

* There is a bug in the hello'ing, actually there was one in 0.9.7 (race condition, not that easy to trigger) but it is fixed in 0.9.8. When conntrackd starts in one node in ft-fw mode, it sets its hello flag in every message until the other node replies with a hello back. This is used to reset the sequence tracking. If the node does not see any hello, it does not reset its sequence tracking, reporting a similar log message.

* This has happened to me once: You (or your script) has deleted the /var/lock/conntrack.lock file of an existing conntrackd instance, then you launched conntrackd. At this moment you have two instances of conntrackd running in ft-fw mode (but you did not notice), each sending messages with their own sequence number. Then, the other point drops the messages of one of the instances as they are before the expected sequence number.

I think your problem is the second, as the expected sequence is increasing (so this means the node is accepting the messages from one instance or somewhere else). A bug in the hello'ing (as described in the first point) would keep the expected sequence the same.

I'm not sure how to fix a situation in which the lock file is deleted accidentally and two instances of conntrackd run at the same time in ft-fw mode. Let me think about this, probably the init scripts can check this before relaunching conntrackd?

Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers