How to manage firewall on Ubuntu server

This is a quick tutorial of the default firewall configuration tool on Ubuntu: ufw

for enable ufw:

sudo ufw enable

for open a port (example ssh):

sudo ufw allow 22

for open a port on udp protocol (example xonotic server):

sudo ufw allow 26000/udp

for disable ufw:

sudo ufw disable

There is also applications preset

sudo ufw app list
sudo ufw allow Samba

More documentation can be found here: https://help.ubuntu.com/community/UFW

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s