troubleshooting Question

How to improve performance of iptable anti-synflood ?

Avatar of kitivracpc2009
kitivracpc2009 asked on
Software Firewalls
3 Comments1 Solution510 ViewsLast Modified:
I have script iptable, it can anti-syn_flood on port 80-http
But when run this script, access to my webserver become slow (delay in some second, and some element can not show), while CPU and RAM used only 30%.

If Anti-syn_flood of iptable make my web server become slow, (because it must Count SYN packet before allow or deny), this is normall? or have any TIP to improve this?

My iptable script:

iptables -N syn_flood
iptables -A INPUT -p tcp --dport 80 --syn -j syn_flood
iptables -A syn_flood -m limit --limit 10/s --limit-burst 10 -j RETURN
iptables -A syn_flood -j DROP
iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -j DROP

Open in new window


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros