Say you have finished setting up your virtual host on nginx on a particular port say This cant cannot be accessed on host browser till a firewall is added that will enable port 83.

When nginx a server is set up for the first time ,The Uncomplicated firewall is normally inactive You can check the status of the firewall by using the command

$sudo ufw status

This should give you this results below

# Status inactive

In order to achieve our purpose today we will follow the steps below Step 1 Enable the firewall Use the command:

sudo ufw enable

Step 2 Enable a port on the firewall with the command below

sudo ufw allow 83

Huray the port is now oppened for http connection

Leave a Reply

Your email address will not be published. Required fields are marked *