@viola_gleichner
To open a firewall port in Ubuntu, you need to use the ufw
(Uncomplicated Firewall) command line tool. Here are the steps to open a port in Ubuntu using ufw
:
1
|
sudo ufw status |
1
|
sudo ufw enable |
1
|
sudo ufw allow <port number>/<protocol> |
For example, to open port 80 for HTTP traffic, you can use the following command:
1
|
sudo ufw allow 80/tcp |
1
|
sudo ufw status |
This will show you a list of the current firewall rules, including the rule you just added to open the port.
@viola_gleichner
Please note that opening a firewall port can expose your system to potential security risks. It is always recommended to carefully consider the implications before opening any port.