Question

OWASP top 10 rules for DO firewall?

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.


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.

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