RAHUL DHOLE
Posted on April 24, 2024
Most common commands
sudo ufw enable
sudo ufw disable
sudo ufw status numbered
sudo ufw delete 1
sudo systemctl status ufw.service
Rules
ufw default deny # deny incoming by default
ufw allow from 90.16.45.159 # allow all from IP
Troubleshoot
- Disable it first and then add rule and enable it
sudo ufw reload
Issues
- It does not block docker ports well
IPTable
Cheat sheet: https://andreafortuna.org/2019/05/08/iptables-a-simple-cheatsheet/
💖 💪 🙅 🚩
RAHUL DHOLE
Posted on April 24, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.