Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Open a TCP port in Ubuntu's ufw firewall

Answer:

To open a TCP port, e.g. 8080 in the Ubuntu's UFW firewall (Uncomplicated firewall)

# sudo ufw allow 8080/tcp
# sudo ufw reload

How do I set up a firewall under Linux?

Answer:

In Linux, IPTables is the default firewall for kernels 2.4 and above.

IPTables is quite a complicated software which cannot be explained in just a few words, please refer to a more comprehensive howto:

https://help.ubuntu.com/community/IptablesHowTo