# SYN Flood Mitigation with synsanity

DevFeed: [SYN Flood Mitigation with synsanity](<https://devfeed.tech/articles/syn-flood-mitigation-with-synsanity-69639.md>)

Original publisher: [Read original article](<https://github.blog/engineering/platform-security/syn-flood-mitigation-with-synsanity/>)

Author: Theo Julienne

Published: 2016-07-12T07:00:00Z

Content type: article

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>), [GitHub Engineering](<https://devfeed.tech/sources/github.md>)

Topics: [DDoS](<https://devfeed.tech/topics/ddos.md>), [NAT and SNAT](<https://devfeed.tech/topics/nat-and-snat.md>), [Service fabric](<https://devfeed.tech/topics/service-fabric.md>)

Tags: [ddos](<https://devfeed.tech/tags/ddos.md>), [denial-of-service](<https://devfeed.tech/tags/denial-of-service.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [platform-security](<https://devfeed.tech/tags/platform-security.md>), [target](<https://devfeed.tech/tags/target.md>)

## AI overview

GitHub describes synsanity, an iptables module for Linux 3.x that mitigates SYN flood DDoS attacks. It generates and validates SYN cookies when the SYN queue overflows, avoiding the LISTEN socket lock while leaving subsequent connection packets to the standard Linux TCP stack. GitHub says the module helped mitigate attacks that would otherwise have caused partial or complete service outages and is open sourcing it.

## Source excerpt

GitHub hosts a wide range of user content, and like all large websites this often causes us to become a target of denial of service attacks. Around a year ago,...