From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: Alec Matusis <matusis@matusis.com>
Cc: netfilter@vger.kernel.org
Subject: Re: PREROUTING DNAT *inconsistent* behavior
Date: Mon, 20 Dec 2010 22:05:06 +0100 [thread overview]
Message-ID: <4D0FC502.8000806@plouf.fr.eu.org> (raw)
In-Reply-To: <06f901cb9e56$9cb7fa30$d627ee90$@com>
Alec Matusis a écrit :
>> Do you mean that REDIRECT did not alter the destination address when it
>> was different from the primary address on eth0 ?
>
> I cannot confirm or deny this, since currently all our production servers
> run with:
> -A PREROUTING -d server.ip -p tcp --dport 443 -j DNAT --to-destination
> server.ip:5228
> The REDIRECT rule is something we tried in the past, to see if these strange
> packets from port 5228 would go away.
Ok. Note that you can skip the server address and use a single rule for
all the server addresses :
-A PREROUTING -p tcp --dport 443 -j DNAT --to-destination :5228
> It turns out, that every strange packet that we see in tcpdump, that goes
> out from port 5228, e.g.
> 17:34:05.147063 IP server.ip.5228 > client.ip.35263: F 65950323:65950323(0)
> ack 4249584466 win 5840
> is in the INVALID state as you suggested, since that client IP is found in
> the INVALID state output log, and has the same timestamp
[...]
> What is strange however, is that even though I am also logging all incoming
> packets in the INVALID state, there are no such packets with this client.ip.
> This suggests that the server responds to a *normal* packet from this
> client.ip with a packet in the INVALID state?
Maybe these packets belong to closed or lost TCP connections. You can
see that most of them have the FIN flag set. So the reason could be that
conntrack has forgotten about these connections.
prev parent reply other threads:[~2010-12-20 21:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-15 4:42 PREROUTING DNAT *inconsistent* behavior Alec Matusis
2010-12-17 22:20 ` Pascal Hambourg
2010-12-18 0:01 ` Alec Matusis
2010-12-18 0:15 ` Pascal Hambourg
2010-12-18 1:55 ` Alec Matusis
2010-12-20 21:05 ` Pascal Hambourg [this message]
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=4D0FC502.8000806@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.org \
--cc=matusis@matusis.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