To allow or open a port using UFW (Uncomplicated Firewall), you use the sudo ufw allow command.
Here are the quick commands you need depending on how you want to configure it:
1. Open a Specific Port
bash
sudo ufw allow 8080
குறியீட்டைக் கவனமாகப் பயன்படுத்துங்கள்.
bash
sudo ufw allow 80/tcp
sudo ufw allow 53/udp
குறியீட்டைக் கவனமாகப் பயன்படுத்துங்கள்.
2. Open a Range of Ports
bash
sudo ufw allow 5000:6000/tcp
sudo ufw allow 5000:6000/udp
குறியீட்டைக் கவனமாகப் பயன்படுத்துங்கள்.
3. Open a Port for a Specific IP Address
- Single IP:
sudo ufw allow from 192.168.1.50 to any port 22
4. Open a Port by Service Name
bash
sudo ufw allow http
sudo ufw allow ssh
குறியீட்டைக் கவனமாகப் பயன்படுத்துங்கள்.
⚠️ Critical Step: Verify and Apply Changes
- Enable UFW (if not already running):bash
sudo ufw enableகுறியீட்டைக் கவனமாகப் பயன்படுத்துங்கள். - Reload UFW to apply the new rules:bash
sudo ufw reloadகுறியீட்டைக் கவனமாகப் பயன்படுத்துங்கள்.
What port number or application are you trying to set up? If you tell me, I can give you the exact command to copy and paste.