Useful UFW Commands

I always forget the syntax of ufw rules, and the command doesn't give detailed help. The following rules were mostly taken from the DigitalOcean link below.

https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands

allow from 203.0.113.0/24
deny from 203.0.113.100

delete allow from 203.0.113.101

status numbered

delete 1

app list

ufw allow “OpenSSH”
delete allow "OpenSSH"

allow https
allow 22

allow proto tcp from any to any port 80,443

allow from 203.0.113.103 to any port 3306
allow from 203.0.113.0/24 to any port 5432

deny out 25