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/
Top comments (0)