Monday, February 23, 2009

Opening and Closing ports in Ubuntu

Took me a while to figure it out so i figured I should share it with everyone. Ubuntu has something called UFW ( Uncomplicated firewall) which can be activated at any time and told to open/close ports.Some of the basics:

sudo ufw enable

sudo ufw allow 53/tcp
sudo ufw allow 53/udp

sudo ufw status

These basic commands can be used for opening ports. See the link for more details (including how to open ports for services automatically )

1 comment:

Draco said...

thanks amigo, I've been looking for this one !!