Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement]: SYN Flood attack protection #482

Closed
1 task done
mdecimus opened this issue May 26, 2024 · 3 comments
Closed
1 task done

[enhancement]: SYN Flood attack protection #482

mdecimus opened this issue May 26, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@mdecimus
Copy link
Member

Which feature or improvement would you like to request?

Automatic defense against SYN flood attacks without needing a firewall.

Is your feature request related to a problem?

I'm having a problem with...

Code of Conduct

  • I agree to follow this project's Code of Conduct
@mdecimus mdecimus added the enhancement New feature or request label May 26, 2024
@lukaslihotzki
Copy link
Contributor

SYN Flood protection is done by the kernel without explicit firewall. Just make sure the sysctl net.ipv4.tcp_syncookies is set to 1. The kernel only passes an incoming TCP connection to user space after the 3-way handshake completed, in which case the connection does not originate from a SYN Flood. Therefore, I don't see what stalwart could possibly implement. Some non-TCP listeners could implement flood protection in userspace, but then it wouldn't be called SYN flooding. Also, stalwart seems to listen on TCP only.

@mdecimus
Copy link
Member Author

Probably the name is incorrect. The goal of this feature is to block hosts that repeatedly open connections and do not issue any commands within a configured time period.

@jheiss
Copy link

jheiss commented Jul 21, 2024

You'll want to be careful as that's pretty commonly what load balancer health checks do. But otherwise that seems like a potentially useful feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants