Report this

What is the reason for this report?

OWASP top 10 rules for DO firewall?

Posted on March 10, 2019

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!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.