By default, Jenkins runs on HTTP port 8080, so we need to make sure that this port allows traffic:
sudo ufw allow 8080
You will get the following output:
Rules updated Rules updated (v6)
Next, we need to see the status of the rules:
sudo ufw status
You will see output like this:
Status: inactive