October 28, 2020 · cheatsheet linux
Ubuntu Firewall CheatSheet
Enable
sudo ufw enable
sudo ufw logging on
See Logs
sudo tail /var/log/ufw.log
Show Available Firewall Profiles
sudo ufw app list
Enable Profile
sudo ufw allow 'Nginx HTTPS'
See current configuration
sudo ufw status
Profiles Available for Nginx
- Nginx Full: This profile opens both port 80 (normal, unencrypted web traffic) and port 443 (TLS/SSL encrypted traffic)
- Nginx HTTP: This profile opens only port 80 (normal, unencrypted web traffic)
- Nginx HTTPS: This profile opens only port 443 (TLS/SSL encrypted traffic)