I Survived a Massive DDoS Attack and Made My Server Bulletproof

So, maybe you can relate… I can be a bit of a noob sometimes! I decided to migrate my website to 100% open-source and self-hosted tools, and I forgot one major step. I didn’t fully understand that step, so now I want to help you understand how not to…


This content originally appeared on DEV Community and was authored by Jimmy McBride

So, maybe you can relate... I can be a bit of a noob sometimes! I decided to migrate my website to 100% open-source and self-hosted tools, and I forgot one major step. I didn’t fully understand that step, so now I want to help you understand how not to get every hacker and their dog's bot spamming the open SSH port you forgot to hide behind a firewall. 😬

yikes

Firewalls! 🔥🔥🔥

Let’s talk about firewalls! There are 2 types of firewalls we need to know about: cloud firewalls and traditional firewalls.

  • Traditional Firewall: A traditional firewall is a security system installed directly on your server’s hardware. It sets up rules for who is allowed to connect to what port on your server. It’s a very useful tool for making sure only the right people have access to a given port. However...
  • Cloud Firewall: A cloud firewall is a network-level firewall. What’s significant about this is that it can stop traffic before it even reaches your server!

you shall not pass

So, while I did set up key-based authentication on my server, making it impossible for anyone to brute force their way in, the number of denied requests to that server consumed a lot of CPU and IO rate—enough to take my site down! Trying to figure out what was happening was almost impossible because the server was so slow! Even setting up the traditional firewall didn’t stop hackers from bombarding my SSH port! However, once I set up a cloud firewall through my provider (DigitalOcean, not a sponsor but open to the idea 😉😉), the bots couldn’t even reach my server’s SSH port at all. No need for obscurity! I can keep my SSH on port 22, and you can’t even touch it! 🚀

However, I can’t block website traffic to my blog, so I can still be DDoSed through those ports, but hey, a win’s a win!

Join The Community

If you like what you’ve read, love to code, and are a fan of Linux, open source, and building your own projects, you’d probably have a great time in my Discord community, The Developers Lounge! We’re a rapidly growing community with lots of great people with a diverse set of skills among us. I’m super active in here, and we have a ton of cool people just waiting to chat. So what are you waiting for? Hop on in!


This content originally appeared on DEV Community and was authored by Jimmy McBride


Print Share Comment Cite Upload Translate Updates
APA

Jimmy McBride | Sciencx (2024-10-22T21:34:02+00:00) I Survived a Massive DDoS Attack and Made My Server Bulletproof. Retrieved from https://www.scien.cx/2024/10/22/i-survived-a-massive-ddos-attack-and-made-my-server-bulletproof/

MLA
" » I Survived a Massive DDoS Attack and Made My Server Bulletproof." Jimmy McBride | Sciencx - Tuesday October 22, 2024, https://www.scien.cx/2024/10/22/i-survived-a-massive-ddos-attack-and-made-my-server-bulletproof/
HARVARD
Jimmy McBride | Sciencx Tuesday October 22, 2024 » I Survived a Massive DDoS Attack and Made My Server Bulletproof., viewed ,<https://www.scien.cx/2024/10/22/i-survived-a-massive-ddos-attack-and-made-my-server-bulletproof/>
VANCOUVER
Jimmy McBride | Sciencx - » I Survived a Massive DDoS Attack and Made My Server Bulletproof. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/10/22/i-survived-a-massive-ddos-attack-and-made-my-server-bulletproof/
CHICAGO
" » I Survived a Massive DDoS Attack and Made My Server Bulletproof." Jimmy McBride | Sciencx - Accessed . https://www.scien.cx/2024/10/22/i-survived-a-massive-ddos-attack-and-made-my-server-bulletproof/
IEEE
" » I Survived a Massive DDoS Attack and Made My Server Bulletproof." Jimmy McBride | Sciencx [Online]. Available: https://www.scien.cx/2024/10/22/i-survived-a-massive-ddos-attack-and-made-my-server-bulletproof/. [Accessed: ]
rf:citation
» I Survived a Massive DDoS Attack and Made My Server Bulletproof | Jimmy McBride | Sciencx | https://www.scien.cx/2024/10/22/i-survived-a-massive-ddos-attack-and-made-my-server-bulletproof/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.