Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Dimitri GOURDON <dgourdon@itool.com>
To: netfilter@vger.kernel.org
Subject: Iptables find invalid packets
Date: Mon, 21 Jul 2008 14:20:38 +0200	[thread overview]
Message-ID: <48847F16.8040604@itool.com> (raw)

Hi all,

I've setup LVS on a box using Keepalived (and Iptables) to load balance 
traffic between 2 web servers. I have a problem :

A lot of TCP packets with FIN or RST flags (all I think) from clients 
are dropped by Iptables as state INVALID. The consequence is that I have 
a lot of connection in FIN_WAIT state (shown by netstat) on the 2 web 
servers...

I have reproduced this on my lab...

I have sniff packets with tcpdump to see flags, ACK number,... I've 
found nothing bad.

I have tried to accept these packets with Iptables and then, all my 
connections are terminated in a normal way (only 1-2 connection(s) stay 
in FIN_WAIT on web servers).

I know I can play with TCP timeout to reduce this behavior, but I'll 
prefer correct the problem. I don't understand why these packets are 
invalid if when I accept them, the connections end normaly...

Google is NOT my friend on this issue.

Is someone can help me ???

Dimitri Gourdon
Linux Web Administrator
Itool systems

PS : Sorry for my poor english !

             reply	other threads:[~2008-07-21 12:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-21 12:20 Dimitri GOURDON [this message]
2008-07-21 12:58 ` Iptables find invalid packets Bernhard Bock
2008-07-21 13:23   ` Dimitri GOURDON
     [not found]   ` <48849E47.30901@itool.com>
2008-07-21 14:39     ` Bernhard Bock
2008-07-21 15:01       ` Dimitri GOURDON
2008-07-21 15:44       ` Dimitri GOURDON
2008-07-21 16:02         ` Bernhard Bock
2008-07-21 13:06 ` Vladislav Kurz
     [not found]   ` <48849F8F.70103@itool.com>
2008-07-21 14:49     ` Vladislav Kurz
     [not found]       ` <4884A414.10408@itool.com>
2008-07-21 15:11         ` Vladislav Kurz

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=48847F16.8040604@itool.com \
    --to=dgourdon@itool.com \
    --cc=netfilter@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