Skip to contentSkip to conversation

: Ignore PSH on SYN/ACK in TCP connection tracking

NETFILTER Applied Patrick McHardy 3 participants 4 messages Apr 24, 2005 – Apr 26, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

This patch fixes a problem with TCP connection tracking and some devices that respond with SYN/ACK/PSH to a SYN packet. TCP connection tracking considers these packets to be invalid and the connection never reaches an estabished state. Ignore PSH on SYN/ACKs.

[NETFILTER]: Ignore PSH on SYN/ACK in TCP connection tracking

---
commit 72fbbd2b143c27c9c3793698c04302d066d9e4bc tree 790636ed7460d6ca2b20cfd98df33a381fe2f0db parent df6c6804ce1d383c878ab071bce8125125d96abc author NIIBE Yutaka <[email protected]> 1114303196 +0200 committer Patrick McHardy <[email protected]> 1114303196 +0200

net/ipv4/netfilter/ip_conntrack_proto_tcp.c (mode:100644 sha1:2b87c1974be605d5bdb1ee769188d7e03fb2ddc8) renamed from net/ipv4/netfilter/ip_conntrack_proto_tcp.c (mode:100644 sha1:e800b16fc9209dd5a26e65d2be4eb83d77a7d7af) +1 -0
Index: net/ipv4/netfilter/ip_conntrack_proto_tcp.c
===================================================================
@@ -770,6 +770,7 @@
 {
 	[TH_SYN]			= 1,
 	[TH_SYN|TH_ACK]			= 1,
+	[TH_SYN|TH_ACK|TH_PUSH]		= 1,
 	[TH_RST]			= 1,
 	[TH_RST|TH_ACK]			= 1,
 	[TH_RST|TH_ACK|TH_PUSH]		= 1,
maintainer Applied
#1 lore raw
Quoted 5 lines · On Sun, 24 Apr 2005 23:41:15 +0200 Patrick McHardy <[email protected]> wrote:

This patch fixes a problem with TCP connection tracking and some devices that respond with SYN/ACK/PSH to a SYN packet. TCP connection tracking considers these packets to be invalid and the connection never reaches an estabished state. Ignore PSH on SYN/ACKs.

Applied, thanks Patrick.

#2 lore raw
In reply to Patrick McHardy

Will there be a 2.4 patch for this?

--joubert

Quoted 33 lines · Patrick McHardy

This patch fixes a problem with TCP connection tracking and some devices that respond with SYN/ACK/PSH to a SYN packet. TCP connection tracking considers these packets to be invalid and the connection never reaches an estabished state. Ignore PSH on SYN/ACKs.

[NETFILTER]: Ignore PSH on SYN/ACK in TCP connection tracking

---
commit 72fbbd2b143c27c9c3793698c04302d066d9e4bc tree 790636ed7460d6ca2b20cfd98df33a381fe2f0db parent df6c6804ce1d383c878ab071bce8125125d96abc author NIIBE Yutaka <[email protected]> 1114303196 +0200 committer Patrick McHardy <[email protected]> 1114303196 +0200

Index: net/ipv4/netfilter/ip_conntrack_proto_tcp.c
===================================================================

net/ipv4/netfilter/ip_conntrack_proto_tcp.c (mode:100644 sha1:2b87c1974be605d5bdb1ee769188d7e03fb2ddc8) renamed from net/ipv4/netfilter/ip_conntrack_proto_tcp.c (mode:100644 sha1:e800b16fc9209dd5a26e65d2be4eb83d77a7d7af) +1 -0
@@ -770,6 +770,7 @@
 {
        [TH_SYN]                        = 1,
        [TH_SYN|TH_ACK]                 = 1,
+       [TH_SYN|TH_ACK|TH_PUSH]         = 1,
        [TH_RST]                        = 1,
        [TH_RST|TH_ACK]                 = 1,
        [TH_RST|TH_ACK|TH_PUSH]         = 1,
#3 lore raw
Quoted 1 line · Joubert Berger

Will there be a 2.4 patch for this?

This problem does not exist in 2.4.

Regards
Patrick