From: Steven M Campbell <Netfilter@SCampbell.net>
To: Carlos Pastorino <carlos.pastorino@gmail.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: It seems I've found why conntrack blocks some packets
Date: Wed, 29 Mar 2006 08:52:03 -0500 [thread overview]
Message-ID: <442A9103.10908@SCampbell.net> (raw)
In-Reply-To: <cc4fcc140603290545q1cfb7c82t6e91ca1801d2dad2@mail.gmail.com>
Carlos Pastorino wrote:
> Hi everyone,
>
> I always wondered why conntrack blocked some packets that were
> supposed to pass through my ESTABLISHED,RELATED rule. Now it seems
> that I've found the answer.
>
> Bear with me, because there will be questions in the end.
>
> So, what happens is: from time to time, I see my firewall blocking a
> packet like this:
>
> Mar 28 14:48:21 SRVA kernel: FORWARD blocked: IN=eth1 OUT=eth0
> SRC=webserverip DST=customerip LEN=48 TOS=0x00 PREC=0x00 TTL=63 ID=0
> DF PROTO=TCP SPT=80 DPT=10458 WINDOW=5840 RES=0x00 ACK SYN URGP=0
>
> Well, it does call my attention because it's a blocked packet FROM my
> webserver. In any case, it shouldn't be blocked, because the
> connection is not even 2 minutes old.
>
> But, on the webserver, I was running tcpdump this time, so I could see
> what really happened:
>
> 14:46:47.573738 customerip.10458 > webserverip.80: S [tcp sum ok]
> 23512000:23512000(0) win 65535 <mss 1460,nop,nop,sackOK> (DF) (ttl
> 120, id 41065, len 48)
> 14:46:47.573747 webserverip.80 > customerip.10458: S [tcp sum ok]
> 4131634297:4131634297(0) ack 23512001 win 5840 <mss
> 1460,nop,nop,sackOK> (DF) (ttl 64, id 0, len 48)
> 14:46:51.327629 webserverip.80 > customerip.10458: S [tcp sum ok]
> 4131634297:4131634297(0) ack 23512001 win 5840 <mss
> 1460,nop,nop,sackOK> (DF) (ttl 64, id 0, len 48)
> 14:46:57.327623 webserverip.80 > customerip.10458: S [tcp sum ok]
> 4131634297:4131634297(0) ack 23512001 win 5840 <mss
> 1460,nop,nop,sackOK> (DF) (ttl 64, id 0, len 48)
> 14:47:09.327609 webserverip.80 > customerip.10458: S [tcp sum ok]
> 4131634297:4131634297(0) ack 23512001 win 5840 <mss
> 1460,nop,nop,sackOK> (DF) (ttl 64, id 0, len 48)
> 14:47:33.527575 webserverip.80 > customerip.10458: S [tcp sum ok]
> 4131634297:4131634297(0) ack 23512001 win 5840 <mss
> 1460,nop,nop,sackOK> (DF) (ttl 64, id 0, len 48)
> 14:47:34.216642 customerip.10458 > webserverip.80: R [tcp sum ok]
> 0:0(0) ack 0 win 0 (ttl 26, id 1, len 40)
> 14:48:21.727515 webserverip.80 > customerip.10458: S [tcp sum ok]
> 4131634297:4131634297(0) ack 23512001 win 5840 <mss
> 1460,nop,nop,sackOK> (DF) (ttl 64, id 0, len 48)
>
> As you can see, the customer connected with a SYN packet, and my
> webserver responded with 6 ACK/SYN packets. BUT, before the 6th
> ACK/SYN response, the customer sent an ACK/RST packet, resetting the
> connection, and thus the 6th ACK/SYN packet was blocked by the
> firewall because the connection was no longer in the conntrack. Yes,
> clocks in the firewall and webserver are synchronized.
>
> Questions are:
>
> 1) Does anyone have seen this happening too?
>
> 2) How can I silently drop that package, without compromising the on
> going connections? I would like to get rid of those "false positives".
>
> Thanks,
>
> Carlos
>
The real question here is what bad thing happened in the the data stream that the customer sent the reset packet? The answer is not to ignore the reset but to find out why it is being sent, the client believes this connection should be aborted for some reason.
next prev parent reply other threads:[~2006-03-29 13:52 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-29 13:45 It seems I've found why conntrack blocks some packets Carlos Pastorino
2006-03-29 13:52 ` Steven M Campbell [this message]
2006-03-29 15:11 ` Roger Hamilton
2006-03-29 15:17 ` Steven M Campbell
2006-03-29 18:04 ` Carlos Pastorino
2006-03-30 5:05 ` Carlos Pastorino
-- strict thread matches above, loose matches on Subject: below --
2006-03-30 5:13 Gary W. Smith
2006-03-30 14:01 ` Carlos Pastorino
2006-03-31 13:20 ` Steven M Campbell
2006-03-31 13:43 ` Steven M Campbell
2006-04-01 20:59 ` Carlos Pastorino
2006-04-02 4:08 ` Steven M Campbell
2006-04-04 12:36 ` Carlos Pastorino
2006-04-05 14:55 ` Steven M Campbell
2006-04-06 18:33 ` Carlos Pastorino
2006-04-01 20:46 ` Carlos Pastorino
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=442A9103.10908@SCampbell.net \
--to=netfilter@scampbell.net \
--cc=carlos.pastorino@gmail.com \
--cc=netfilter@lists.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.