Scotech Scotech
Knowledge Base
[ Home | KB | Tools | Requests? ]


Configure the firewall on Ubuntu 9.10


Enable the firewall (if over ssh, add ssh port first.)

sudo ufw enable

Allow port 22 ssh traffic (in general or network specific.)

sudo ufw allow 22
sudo ufw allow proto tcp from 192.168.1.0/24 to any port 22

If you make an error, or want to remove a rule, here's how.

sudo ufw delete allow 22
sudo ufe delete allow proto tcp from 192.168.1.0/24 to any port 22

Some various other protocols to possibly allow through.

sudo ufw allow 80
sudo ufw allow 110
sudo ufw allow 143
sudo ufw allow 443
sudo ufw allow 993
sudo ufw allow 995

Various ways to check the status of the firewall.

sudo ufw status
sudo ufw status verbose
sudo ufw status numbered

And if you want to disable the firewall service.

sudo ufw disable

See manufacturer documentation if you need more detailed rules.

- Scotech



[ Home | KB | Tools | Email: info@scotech.com ]

© 1996-2010 Scotech. All rights reserved.