netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PATCH: "invalid SYNIN=" - a patch and a question
@ 2007-09-26 12:27 Krzysztof Oledzki
  2007-10-03 13:06 ` Krzysztof Oledzki
  2007-10-04  5:45 ` Patrick McHardy
  0 siblings, 2 replies; 40+ messages in thread
From: Krzysztof Oledzki @ 2007-09-26 12:27 UTC (permalink / raw)
  To: Netfilter Developer Mailing List

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1349 bytes --]

Hello,

Attached patch should fix missing space between "SYN" and "IN=".

nf_ct_tcp: invalid SYNIN= OUT= SRC=192.168.150.16 DST=192.168.50.21 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=19810 DF PROTO=TCP SPT=43183 DPT=80 SEQ=3917241971 ACK=0 WINDOW=5840 RES=0x00 SYN URGP=0 OPT (020405B40402080A3C14363B0000000001030307) UID=451

192.168.150.16 <- my local ip address
192.168.50.21  <- remote server

My question is about this message. Apparently there is someting wrong with 
my configuration. I'm running http proxy/load balancer so my server makes 
_a lot_ of connections for/to the same address IP pair. I noticed that 
many of them were not successful. I know about TIMEWAIT issue, but as long 
there are enough free ports for current connection rate (in my 
situation it is about 100/s) it should not be a problem.

So, with net.netfilter.nf_conntrack_log_invalid set to 255 I get:

grep "invalid SYNIN" /var/log/syslog |wc -l
1186

Could the problem be that default 
net.netfilter.nf_conntrack_tcp_timeout_time_wait is 120s by default, and 
TCP_TIMEWAIT_LEN is 60:

/usr/src/linux/include/net/tcp.h:#define TCP_TIMEWAIT_LEN (60*HZ) /* how long to wait to destroy TIME-WAIT

I tried to change net.netfilter.nf_conntrack_tcp_timeout_time_wait to 60 
but this does not help much.

Best regards,


 				Krzysztof Olędzki

[-- Attachment #2: Type: TEXT/PLAIN, Size: 778 bytes --]

[NETFILTER]: Trivial fix for "nf_ct_tcp: invalid SYN"

This nf_log_packet needs a space char. Trivial fix

Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl>

diff -Nur linux-2.6.23-rc8-orig/net/netfilter/nf_conntrack_proto_tcp.c linux-2.6.23-rc8/net/netfilter/nf_conntrack_proto_tcp.c
--- linux-2.6.23-rc8-orig/net/netfilter/nf_conntrack_proto_tcp.c	2007-09-25 02:33:10.000000000 +0200
+++ linux-2.6.23-rc8/net/netfilter/nf_conntrack_proto_tcp.c	2007-09-25 16:50:39.000000000 +0200
@@ -897,7 +897,7 @@
 			write_unlock_bh(&tcp_lock);
 			if (LOG_INVALID(IPPROTO_TCP))
 				nf_log_packet(pf, 0, skb, NULL, NULL,
-					      NULL, "nf_ct_tcp: invalid SYN");
+					      NULL, "nf_ct_tcp: invalid SYN ");
 			return -NF_ACCEPT;
 		}
 	case TCP_CONNTRACK_CLOSE:

^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2007-11-14 21:56 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-26 12:27 PATCH: "invalid SYNIN=" - a patch and a question Krzysztof Oledzki
2007-10-03 13:06 ` Krzysztof Oledzki
2007-10-03 13:54   ` Jozsef Kadlecsik
2007-10-03 19:57     ` Krzysztof Oledzki
2007-10-04  7:26       ` Jozsef Kadlecsik
2007-10-04  5:59     ` Patrick McHardy
2007-10-04  7:52       ` Jozsef Kadlecsik
2007-10-04  7:59         ` Patrick McHardy
2007-10-04  8:41           ` Jozsef Kadlecsik
2007-10-05 20:06             ` Krzysztof Oledzki
2007-10-08  9:32               ` Jozsef Kadlecsik
2007-10-08  9:45                 ` Jozsef Kadlecsik
2007-10-08 13:56                   ` Krzysztof Oledzki
2007-10-08 14:01                     ` Krzysztof Oledzki
2007-10-08 13:58                 ` Krzysztof Oledzki
2007-10-08 14:01                   ` Jozsef Kadlecsik
2007-10-08 17:28                     ` Krzysztof Oledzki
2007-10-09  8:11                       ` Jozsef Kadlecsik
2007-10-09 13:17                         ` Krzysztof Oledzki
2007-10-09 13:22                           ` Krzysztof Oledzki
2007-10-08 16:39                 ` Patrick McHardy
2007-10-08 17:23                   ` Krzysztof Oledzki
2007-10-04  6:15   ` Patrick McHardy
2007-10-10 19:26   ` Jozsef Kadlecsik
2007-10-11  4:04     ` Patrick McHardy
2007-10-11 13:52       ` Krzysztof Oledzki
2007-10-31 19:34         ` Krzysztof Oledzki
2007-11-05 11:11           ` Patrick McHardy
2007-11-14 21:46             ` [stable] " Greg KH
2007-10-11 13:50     ` Krzysztof Oledzki
     [not found]     ` <Pine.LNX.4.64.0710112238010.29814@bizon.gios.gov.pl>
2007-10-11 22:42       ` Jozsef Kadlecsik
2007-10-12 10:09         ` Krzysztof Oledzki
2007-10-12 14:48           ` Jozsef Kadlecsik
2007-10-12 18:09             ` Krzysztof Oledzki
2007-10-17 17:41               ` Jozsef Kadlecsik
2007-10-17 20:08                 ` Krzysztof Oledzki
2007-10-18  8:43                 ` Patrick McHardy
2007-10-04  5:45 ` Patrick McHardy
2007-10-17 20:13   ` Krzysztof Oledzki
2007-10-18  8:43     ` Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).