Linux Netfilter discussions
 help / color / mirror / Atom feed
* synflood +syncookies + conntrack strange behaviour
@ 2013-05-10  1:04 Alex Flex
  2013-05-11  0:07 ` Alex Flex
  2013-05-11 18:26 ` Pascal Hambourg
  0 siblings, 2 replies; 6+ messages in thread
From: Alex Flex @ 2013-05-10  1:04 UTC (permalink / raw)
  To: netfilter

Hello Netfilter,

Today I wanted to do some LAN tests with two machines, where i would use 
one to syn flood the other.

Iam using a firewall with conntrack enabled. I noticed that while I made 
the attack (50k pps @ 15mbitsfrom random IPs) I immediately  saw the 
conntrack max count reach 65535 which is my max value. Packets 
immediately started being lost almost in full.

Questions:

a.) Shouldnt syn cookies (which is enabled) deal with the syn flood 
without compromising my state table?
b.) Why if my state table is full am I not getting any table full error 
message in dmesg or syslog? I tried setting max conntrack to something 
lower (10,000)and even maxed out it didnt give any warning. In fact i 
had to set it to 100 and only at that time I got the conntrack error 
full message??
c.) I  tried disabling iptables all together (thus no conntrack)and I 
still saw 100% packetloss , iam sure iamnot hitting a  cpu or link limit 
because previously i hit a 100k pps 50mbits, and now iam doing half that 
for testing and still using syncookies. Why would i still be lossing 
packets?

Thanks for the help!

Alex



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

end of thread, other threads:[~2013-05-11 18:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-10  1:04 synflood +syncookies + conntrack strange behaviour Alex Flex
2013-05-11  0:07 ` Alex Flex
2013-05-11  2:21   ` Pablo Neira Ayuso
2013-05-11 18:05     ` Alex Flex
2013-05-11 18:26 ` Pascal Hambourg
2013-05-11 18:47   ` Alex Flex

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox