How to protect your server from Single IP DoS attacks ?


Staff member
These 2 simple iptables rules will protect your server from most of the single IP DoS attacks. If your server port is not 27015, then change the --dport parameter in below commands.

iptables -A INPUT -p udp -m udp --dport 27015 -m state --state NEW -m recent --set --name DEFAULT --mask --rsource
iptables -A INPUT -p udp -m udp --dport 27015 -m state --state NEW -m recent --update --seconds 20 --hitcount 20 --name DEFAULT --mask --rsource -j DROP
Note: Do not ask how to protect server against DDoS attacks. Only your VPS Host Provider can protect your server from DDoS attacks. So contact them or purchase any third party DDoS protection for game servers..
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock