Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Bernhard Bock <mailinglists@bock.nu>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter@vger.kernel.org
Subject: Re: conntrackd failover works partially, was Re: conntrack performance test results in INVALID packets
Date: Tue, 02 Sep 2008 18:55:08 +0200	[thread overview]
Message-ID: <48BD6FEC.5090100@bock.nu> (raw)
In-Reply-To: <48BD6846.9030006@netfilter.org>

Pablo,

Pablo Neira Ayuso wrote:
> Hm, the new script does exactly the same when the node becomes primary
> as it used to do script_master.sh, so I cannot find a reason why the new
> script does it worst.

It does worse than my own script (with the horrible workaround). It does
equally good as your original script.


> During the fail-over, keepalived recovers the virtual IPs and conntrackd
> commits the states into the kernel. The commit takes very short but you
> can still lose some packets if the state is not yet present in the
> kernel - thus, these packets are logged as invalid and dropped as we
> don't find any matching state (with a sane stateful rule-set, of
> course). *However*, the TCP sessions should recover as the peer or the
> server retransmits the packet in short, so I don't understand why you
> lose nearly all the sessions.

Agreed. My problem is, it doesn't recover. It keeps dropping packets as
long as the test runs (the test stops at some point in time with socket
timeouts).


> Is the firewall sending RST packets to the peer/server to close
> connections? If so, I remember a similar report with a RHEL kernel:

Will check tomorrow.


> conntrack -F should be enough, there's something wrong in the kernel.
> There were other issues related with nat.

This is happening entirely without NAT. And it is only appearing while
using conntrackd and doing a failover. With a standalone firewall, I
cannot reproduce this behavior. I haven't tested any other software
using netlink, like e.g. ULOG, though.

Best regards
Bernhard


  reply	other threads:[~2008-09-02 16:55 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-18  9:39 conntrack performance test results in INVALID packets Bernhard Bock
2008-07-18 10:13 ` Jan Engelhardt
2008-07-18 10:52   ` Bernhard Bock
2008-07-18 12:14     ` Pablo Neira Ayuso
2008-07-18 14:20       ` conntrackd failover works partially, was " Bernhard Bock
2008-07-21  0:37         ` Pablo Neira Ayuso
2008-07-21 14:22           ` conntrackd failover works partially Bernhard Bock
2008-07-23  8:51             ` Bernhard Bock
2008-07-23 12:50             ` Pablo Neira Ayuso
2008-07-23 15:20               ` Bernhard Bock
2008-08-08  8:47         ` conntrackd failover works partially, was Re: conntrack performance test results in INVALID packets Pablo Neira Ayuso
2008-08-08 12:58           ` Bernhard Bock
2008-09-02  9:39           ` Bernhard Bock
2008-09-02  9:56             ` Pablo Neira Ayuso
2008-09-02 12:34               ` Bernhard Bock
2008-09-02 12:48                 ` Pablo Neira Ayuso
2008-09-02 15:18                   ` Bernhard Bock
2008-09-02 16:22                     ` Pablo Neira Ayuso
2008-09-02 16:55                       ` Bernhard Bock [this message]
2008-09-03  9:13                         ` Pablo Neira Ayuso
2008-09-03 11:26                           ` Bernhard Bock
2008-09-04 12:29                             ` Pablo Neira Ayuso
2008-09-04 13:27                               ` Bernhard Bock
2008-09-05 10:55                                 ` Pablo Neira Ayuso
2008-09-04 11:40                 ` Pablo Neira Ayuso

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=48BD6FEC.5090100@bock.nu \
    --to=mailinglists@bock.nu \
    --cc=netfilter@vger.kernel.org \
    --cc=pablo@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