Setting up firewall for wordpress and forum

July 17, 2018 627 views
LAMP Stack WordPress Ubuntu 16.04

hello,

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,
Jarland

Have another answer? Share your knowledge.