Setting up firewall for wordpress and forum

July 17, 2018 1.7k views
WordPress LAMP Stack Ubuntu 16.04


I used the oneclick lamp then installed my forum xeonforo and wordpress.

I’ve enable the firewall with the default 4 rules and adding the https rule and it all works fine. But is this enough?

I notice the one click WordPress installs fail2ban and UFW. Would installing these myself be a alternative to the digital ocean firewall?

many thanks

1 Answer

Hello friend!

Allowing http/https will be sufficient for the website, and SSH (port 22 default) for remote access via terminal, will be sufficient for that use case. In this case it would go DO Firewall > UFW > web server. So UFW still functions with fail2ban and using our firewall on top of everything is merely a matter of preference at that stage.

Kind Regards,

Have another answer? Share your knowledge.

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