UFW Firewall

July 3, 2013 8k views
Hey! I found a link here on the site : https://www.digitalocean.com/community/articles/how-to-setup-a-firewall-with-ufw-on-an-ubuntu-cloud-server Does the ruleset i make, will it still be there when i reboot the server? have a little trouble finding out that piece of info ?
6 Answers
UFW will save the rules so that they're still set after rebooting.
Great thanks :)
How can i block DOS and such things is there any guides to read about it ?
As far as I know, UFW isn't flexible enough to set up complicated anti-DDoS rules - you'll have better luck finding resources for iptables.
Okay thanks again :)
To protect against DDoS and other malicious attacks you'll want something like fail2ban:
https://www.digitalocean.com/community/articles/how-to-protect-ssh-with-fail2ban-on-ubuntu-12-04
https://help.ubuntu.com/community/Fail2ban
by Etel Sverdlov
fail2ban provides a way to automatically protect virtual servers from malicious behavior. This tutorial shows you how to install Fail2Ban, copy the Configuration File, configure the fail2ban defaults, and find out how to configure the ssh defaults. This tutorial describes the required steps to set up fail2ban on Ubuntu.
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!