Mastering UFW: Rare and Essential Commands for Securing Your Linux System
Deepak Kumar
Admin Manager @CyEile? | Cloud Solutions Architect | AWS, Azure, DigitalOcean Expert | DevSecOps Practitioner | Docker, Jenkins & CI/CD Enthusiast
5 Rare UFW Commands
sudo ufw limit ssh
This helps block clients that exceed this rate.
sudo ufw allow from 192.168.1.100
This will allow access to your system only from 192.168.1.100.
sudo ufw allow from 192.168.1.0/24 to any port 8080
sudo ufw reject 443/tcp
The client will receive a response that the connection was explicitly rejected, rather than just timing out.
sudo ufw default deny incoming
sudo ufw default allow outgoing
Conclusion
These commands offer more advanced control over your firewall settings, allowing you to fine-tune security and manage traffic more effectively. Incorporating these rare UFW commands into your security setup will help you address a wider range of use cases, from IP-based filtering to brute-force protection.
Deepak Kumar