From: Phil Oester <kernel@linuxace.com>
To: "Dawid Stawiarski - nazwa.pl" <dawid.stawiarski@netart.pl>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: linux 3.12 regression - snat problem with ftp helper
Date: Fri, 15 Nov 2013 12:09:29 -0800 [thread overview]
Message-ID: <20131115200928.GA11322@home> (raw)
In-Reply-To: <52862618.4030202@netart.pl>
[-- Attachment #1: Type: text/plain, Size: 552 bytes --]
On Fri, Nov 15, 2013 at 02:48:08PM +0100, Dawid Stawiarski - nazwa.pl wrote:
> hello,
>
> after upgrade to mainline kernel v. 3.12 our machines are not able
> to connect to ftp service (from inside of the lxc containters).
> Mainline kernel 3.11.8 works fine.
>
> in packet 8 host sends rewriten PORT command (with changed private
> to public IP) - however the packet has incorrect sequence number
> (should have 41).
> the ftp server responds with SACK but the host resets the connection.
Does the attached patch solve the problem for you?
Phil
[-- Attachment #2: patch-seqadj --]
[-- Type: text/plain, Size: 679 bytes --]
diff --git a/net/netfilter/nf_conntrack_seqadj.c b/net/netfilter/nf_conntrack_seqadj.c
index 5f9bfd0..17c1bcb 100644
--- a/net/netfilter/nf_conntrack_seqadj.c
+++ b/net/netfilter/nf_conntrack_seqadj.c
@@ -41,8 +41,8 @@ int nf_ct_seqadj_set(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
spin_lock_bh(&ct->lock);
this_way = &seqadj->seq[dir];
if (this_way->offset_before == this_way->offset_after ||
- before(this_way->correction_pos, seq)) {
- this_way->correction_pos = seq;
+ before(this_way->correction_pos, ntohl(seq))) {
+ this_way->correction_pos = ntohl(seq);
this_way->offset_before = this_way->offset_after;
this_way->offset_after += off;
}
next prev parent reply other threads:[~2013-11-15 20:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-15 13:48 linux 3.12 regression - snat problem with ftp helper Dawid Stawiarski - nazwa.pl
2013-11-15 20:09 ` Phil Oester [this message]
2013-11-17 0:23 ` Pablo Neira Ayuso
2013-11-18 7:41 ` Dawid Stawiarski - nazwa.pl
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=20131115200928.GA11322@home \
--to=kernel@linuxace.com \
--cc=dawid.stawiarski@netart.pl \
--cc=netfilter-devel@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 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.