DDOS Protection and Shell Protection

How do I protect my CentOS server from a DDOS and Shell attacks :L

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

you should look into a solution from Solarflare Communications. They have developed solution to protect Linux kernel from DDOS attacks.

a non-standard port for SSH <br> <br>This is very first thing I’ve done on every server or VPS I’ve spun up in the past couple of years. Makes a huge difference. The first time I switched off of port 22 for SSH I went from almost 10,000 attempted logins on port 22 on one day to 0 on the new port the next day. <br> <br>Also really like CSF as a firewall setup tool.

You can’t. The best you can do is hope to mitigate the disruption. Start w/a firewall; a non-standard port for SSH; fail2ban; SSH-key (i.e. passwordless) logins; and a monitoring tool. <br> <br>For websites, <a href=“”>CloudFlare</a>, provides a good service (and they even have a free plan).