I’m using CentOS 7 droplets. For all my droplets I’d like to create a “Base Firewall” that has the usual attack signatures blocked as per OWASP Top 10. Can’t find anything in the tutorials for it. I’ve had decent luck with AWS WAF (there’s a yaml starter kit that one could easily set up with), but nothing on Digital Ocean. Any pointers? Thanks.
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!
Greetings!
Our firewall in the cloud control panel is purely a network firewall, and not a web application firewall. With this in mind, you can remove any reference to DigitalOcean from your search and focus purely on how to accomplish it inside of a CentOS 7 server without any external tooling.
One popular web application firewall is mod_security, an Apache module. I found a tutorial for installing mod_security and the OWASP rules here:
http://linuxpitstop.com/install-and-setup-owasp-on-centos-linux/
I do not believe that there will exist a step by step guide for choosing their top 10 rules as opposed to the entirety of their rules, but it is certainly possible to remove rules from the configuration files downloaded in this tutorial.
Jarland
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.