How Do I Add a Firewall Rule in Ubuntu?
Contents How Do I Add a Port to Ubuntu Firewall? Ubuntu and Debian Issue the Following Command to Open Port 1191 for Tcp Traffic. Sudo Ufw Allow 1191/Tcp...
Contents
How do I add a port to Ubuntu firewall?
Ubuntu and Debian
- Issue the following command to open port 1191 for TCP traffic. sudo ufw allow 1191/tcp.
- Issue the following command to open a range of ports. sudo ufw allow 60000-61000/tcp.
- Issue the following command to stop and start Uncomplicated Firewall (UFW). sudo ufw disable sudo ufw enable.
Must Read
How do I check firewall rules in Ubuntu?
To check firewall status use the ufw status command in the terminal. If the firewall is enabled, you will see the list of firewall rules and the status as active. If the firewall is disabled, you will get the message “Status: inactive”. For more detailed status use verbose option with ufw status command.