UFW Secures Ubuntu
Posted on January 20th, 2010 by hengdu
Due to my desktop will go to public, I mean public IP not NASDQ, I have to enable firewall. After googling, I find a default firewall for Ubuntu system – Uncomplicated Firewall (UFW).
Enable/Disable Firewall
sudo ufw enable
sudo ufw disable
Add rules to firewall
sudo ufw allow 22
sudo ufw delete allow 22
sudo ufw deny from 10.1.1.1/24 to any port 22
sudo ufw allow from 10.2.2.2/24 to any port 22
To see current rules
sudo ufw status verbose
For all port mapping, you can go to cat /etc/service.
Thanks
Discussion Area - Leave a Comment