Setting up firewall for wordpress and forum

Posted July 17, 2018 3.8k views
WordPressLAMP StackUbuntu 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

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.

Submit an Answer
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,