While working with linux os, We need to open some kinds of port like for FTP server, Use the following command for the same.
In this post, We will open the port 21 for FTP server on ubuntu.
Step 1: Allow the Port 21
You need to execute the given command to allow port 80 using UFW utility.
sudo ufw allow 21
Step 2: Get UFW firewall Status
Now we need to check and verify the open port by using the given command.
sudo ufw status
Conclusion
We have successfully opned port 21 on ubuntu 22.04 LTS, Kindly report in case you are facing defeculties with follwing details.
- OS name
- OS version
- Package name
- Logs – Error / Warning / failed
Get in touch with our new devops tools based website- https://www.devopstricks.in/
How to open port 21 FTP using UFW firewall on ubuntu linux