How to Open Ports in Linux
Using UFW (Uncomplicated Firewall)
1. Check UFW Status
sudo ufw status2. Allow a Specific Port
sudo ufw allow 22sudo ufw allow 33893. Allow a Port with a Specific Protocol
sudo ufw allow 3389/tcp4. Enable UFW (if not already enabled)
sudo ufw enableUsing iptables
1. Check Existing Rules
2. Allow a Specific Port
3. Save Your Changes
Conclusion
Last updated