Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Yoann Juet <yoann.juet@univ-nantes.fr>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter@vger.kernel.org
Subject: Re: Second failover failure with conntrackd - INVALID packets
Date: Fri, 13 Feb 2009 09:21:02 +0100	[thread overview]
Message-ID: <49952D6E.4020501@univ-nantes.fr> (raw)
In-Reply-To: <49929106.8080006@netfilter.org>

[-- Attachment #1: Type: text/plain, Size: 2330 bytes --]

Pablo,

Pablo Neira Ayuso wrote:
> Yoann Juet wrote:
>> Pablo Neira Ayuso wrote:
>>>> As you can see, this TCP connection is present:
>>>>
>>>> root@fw1-irt:~# conntrack -L  |grep 34189
>>>> conntrack v0.9.10 (conntrack-tools): 14 flow entries has been shown.
>>>> tcp      6 10581 ESTABLISHED src=172.18.244.10 dst=193.52.101.32
>>>> sport=34189 dport=5222 packets=63 bytes=12039 src=193.52.101.32
>>>> dst=172.18.244.10 sport=5222 dport=34189 packets=58 bytes=22146
>>>> [ASSURED] mark=0 secmark=0 use=1
>>> This is weird, look like some problem in your scripts or the commit is
>>> not working in node fw1-irt. The packet counters of the entry above show
>>> that this is the old entry which is stuck in the cache after the second
>>> failover. This should be deleted when fw1-irt's script issues the commit
>>> (conntrackd -c). Does the log file tells that the commit was successful?
>>>
>> I confirm that "conntrackd -c" is executed on FW1-IRT on the second
>> failover. FYI, my LSB script executes the following instructions (start=
>> new active node ; stop = new passive node):
>>
>> ...
>> case "$1" in
>>         start)
>>                 conntrackd -c -C /etc/conntrackd.conf
>>                 conntrackd -f -C /etc/conntrackd.conf
>>                 conntrackd -R -C /etc/conntrackd.conf
>>                 exit 0
>>                 ;;
>>
>>         stop)
>>                 #conntrackd -t -C /etc/conntrackd.conf
>>                 conntrackd -n -C /etc/conntrackd.conf
>>                 exit 0
>>                 ;;
> 
> Before the second failover, does conntrackd -e in FW1-IRT (now in backup
> mode) show, at least, one entry that talks about the TCP connection that
> is in trouble? I think that it will not show any (but it should show
> one, so I think that I have found the problem ;). Please, confirm this
> and I'll get back to you with a possible solution soon.

You're right, the external cache on FW1 is empty before the second failover.

> 
> BTW, why your script does not invoke the '-t', did you notice any
> problem? That schedules the cleanup of the kernel conntrack table after
> PurgeTimeout seconds when a node enters backup mode.
> 

I was just testing with and without this instruction that was not 
available on conntrackd 0.9.6.

> Thanks for your patience.
> 

Thanks for your assistance !

[-- Attachment #2: yoann_juet.vcf --]
[-- Type: text/x-vcard, Size: 375 bytes --]

begin:vcard
fn:Yoann Juet
n:Juet;Yoann
org;quoted-printable:;DSI Universit=C3=A9 de Nantes
adr;quoted-printable:BP92208;;2, rue de la Houssini=C3=A8re;Nantes;;44322;France
email;internet:yoann.juet@univ-nantes.fr
title;quoted-printable:Ing=C3=A9nieur s=C3=A9curit=C3=A9 & r=C3=A9seau
tel;work:02.51.12.53.93
tel;fax:02.51.12.58.60
x-mozilla-html:FALSE
version:2.1
end:vcard


  reply	other threads:[~2009-02-13  8:21 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-21 17:52 Second failover failure with conntrackd - INVALID packets Yoann Juet
2009-01-21 20:52 ` Pablo Neira Ayuso
2009-01-22  9:54   ` Yoann Juet
2009-01-22 16:55     ` Pablo Neira Ayuso
2009-01-23 12:39       ` Yoann Juet
2009-01-25 10:51         ` Pablo Neira Ayuso
2009-01-25 17:55           ` Pablo Neira Ayuso
2009-01-26 19:27             ` Yoann Juet
2009-01-26 23:01               ` Pablo Neira Ayuso
2009-01-29 16:10                 ` Yoann Juet
2009-02-03 10:10                   ` Pablo Neira Ayuso
2009-02-04 10:37                     ` Yoann Juet
2009-02-04 10:43                       ` Pablo Neira Ayuso
2009-02-06  9:18                         ` Yoann Juet
2009-02-09 11:29                           ` Pablo Neira Ayuso
2009-02-10 13:13                             ` Yoann Juet
2009-02-11  8:49                               ` Pablo Neira Ayuso
2009-02-13  8:21                                 ` Yoann Juet [this message]
2009-02-13 15:20                                   ` Pablo Neira Ayuso
     [not found]                                     ` <499B0696.2020300@netfilter.org>
2009-02-23 15:38                                       ` Yoann Juet
2009-02-23 20:40                                         ` Pablo Neira Ayuso
2009-02-24 12:03                                           ` Yoann Juet

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=49952D6E.4020501@univ-nantes.fr \
    --to=yoann.juet@univ-nantes.fr \
    --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