Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Alex Flex <aflexzor@gmail.com>
To: netfilter@vger.kernel.org
Subject: Re: SynFloods and CPU usage with and without iptables. Confused!
Date: Sat, 04 May 2013 20:01:21 -0600	[thread overview]
Message-ID: <5185BD71.7050800@gmail.com> (raw)
In-Reply-To: <16D2B778-173A-426F-A60B-47547EB1F026@stevek.com>

Thanks Steven,

Out of curiosity is there a hash table, or a way to view such table and 
its limits?

Alex

On 05/04/2013 07:34 PM, Steve Kann wrote:
> Yes.
>
> If you're keeping track of incoming connections, then the packets generated by the attacker in a SYN Flood connection will end up using ip_conntrack table entries.   The whole point of SYNCOOKIES is to have zero stats.    If you're getting million+ SYN/sec, you just cannot afford to keep track of them. even with quite efficient data structures, there's only so many you can possibly track.
>
> -SteveK
>
>
> On May 4, 2013, at 9:27 PM, Alex Flex<aflexzor@gmail.com>  wrote:
>
>> Steven,
>>
>> In other words you are saying that having the following lines in my iptables script defeats the purpose of syn cookies?
>>
>> /sbin/iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
>> /sbin/iptables -A OUTPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
>>
>> Just confirming.
>>
>> Thanks
>> Alex
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe netfilter" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html


  reply	other threads:[~2013-05-05  2:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-04 17:24 SynFloods and CPU usage with and without iptables. Confused! Alex Flex
2013-05-04 21:39 ` hdemir
2013-05-04 22:07   ` Steve Kann
2013-05-05  1:27     ` Alex Flex
2013-05-05  1:34       ` Steve Kann
2013-05-05  2:01         ` Alex Flex [this message]
2013-05-05  1:29   ` Alex Flex
2013-05-06 11:27     ` Husnu Demir
  -- strict thread matches above, loose matches on Subject: below --
2013-05-04 17:15 Alex Flex
     [not found] ` <27F4C2E78FB64527A44CA6E3BC368315@gmail.com>
     [not found]   ` <7668B4D1FBE84D73BC3BFBFCAFCBEC1F@gmail.com>
2013-05-04 18:42     ` Alex Flex
2013-05-04 18:45     ` Alex Flex
     [not found]       ` <417A64583B334DA0B8977D49C5A09DEE@gmail.com>
2013-05-04 20:41         ` Alex Flex
2013-05-04 21:01 ` Jozsef Kadlecsik

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=5185BD71.7050800@gmail.com \
    --to=aflexzor@gmail.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