User Tools

Site Tools




ufw should be installed by default on newer Ubuntu servers. (Although it is most likely disabled)


sudo ufw default allow  # Careful, uwf by default DENIES all incoming traffic. So I first set it to "allow" here to avoid being locked out of the server
sudo ufw enable  

Checking status

sudo ufw status verbose

Adding Rules

Block an IP

sudo ufw deny from

Block a Port

sudo ufw deny 53

Removing Rules

sudo ufw delete deny from

External Links

ufw.txt · Last modified: 2012/03/24 11:15 by mantis