From: Jesper Dangaard Brouer <netdev@brouer.com>
To: Thiago Oliveira <cpv.thiago@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Syn Flood and DDoS Protect
Date: Tue, 11 Mar 2014 12:19:32 +0100 [thread overview]
Message-ID: <20140311121932.2f3eda9d@brouer.com> (raw)
In-Reply-To: <CAB0UdF1KjZtOiddUGq8sOKkVWs6BLJ1rfb5CVfdknjvpDw7Z6g@mail.gmail.com>
On Tue, 11 Mar 2014 04:23:39 -0300
Thiago Oliveira <cpv.thiago@gmail.com> wrote:
> I am looking for to add protection to firewall (IPTABLES based)
> specifically for SYN flood and DDoS attack to start with and, to that
> end, was trawling through the archives of this mailing lists and other
> places Google suggested I visit.
>
> Unfortunately, what I found suggests that there is some debate about
> how best to approach this.
> Specifically, many postings suggest using a 'limit' module or TCP flag
> combinations, but other postingssay that such rules will not help and
> in fact may even themselves act as a kind of internal DoS!
Yes, unfortunately many of the iptables modules with state, have not
(yet) been optimized for parallel processing (this is work in progress,
at some point they will hopefully all scale and avoid serialization on
their internal state). Note, normal/simple iptables rules without
state is capable of parallel processing.
> So my question is, has there been a resolution to this case? Can I
> protect my Linux Firewall using IPTABLES?
You are in luck. I recently gave a talk on the subject of using
iptables/netfilter to protect against SYN-flood DoS attacks. We have
recently developed a module called SYNPROXY that address this.
YouTube videos:
https://www.youtube.com/watch?v=BklSqr9t4uA
Slides:
http://people.netfilter.org/hawk/presentations/devconf2014/
Script:
https://github.com/netoptimizer/network-testing/blob/master/iptables/iptables_synproxy.sh
And extra (not in slides) is that I recently optimized conntrack
new-and-del operations, by implementing "parallel" locking. These
changes will appear in kernel 3.14.
http://thread.gmane.org/gmane.comp.security.firewalls.netfilter.devel/51681
I would appreciate if people can test these recent conntrack
optimizations, the kernel code is avail in Pablo's nf-next tree:
https://git.kernel.org/cgit/linux/kernel/git/pablo/nf-next.git/
I'm willing to help to provide build kernels for your system, if you
can try/test these changes in production...
--
Best regards,
Jesper Dangaard Brouer
MSc.CS, Sr. Network Kernel Developer at Red Hat
Author of http://www.iptv-analyzer.org
LinkedIn: http://www.linkedin.com/in/brouer
next prev parent reply other threads:[~2014-03-11 11:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-11 7:23 Syn Flood and DDoS Protect Thiago Oliveira
2014-03-11 11:19 ` Jesper Dangaard Brouer [this message]
2014-03-11 15:24 ` Phil Oester
2014-03-11 16:35 ` Thiago Oliveira
2014-03-11 17:12 ` Thiago Oliveira
2014-03-12 8:42 ` Jesper Dangaard Brouer
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=20140311121932.2f3eda9d@brouer.com \
--to=netdev@brouer.com \
--cc=cpv.thiago@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 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.