How to open port 27017 MongoDB database using UFW firewall on ubuntu linux

 

 


 

While working with linux os, We need to open some kinds of port like for MongoDB database server, Use the following command for the same.

 

Step 1: Allow the Port 27017

 

You need to execute the given command to allow port 80 using UFW utility.

sudo ufw allow 27017


 

Step 2: Get UFW firewall Status 


Now we need to check and verify the open port by using the given command.

sudo ufw status

 

 

How to open port 27017 MongoDB database using UFW firewall on ubuntu linux

Leave a Reply

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

Scroll to top