1
ufw status

1
ufw allow 80
1
ufw status numbered
1
ufw status numbered | grep 3306
1
ufw delete 1

Allow an IP to any port:
1
ufw allow from x.x.x.x/xx
1
ufw allow from x.x.x.x to <destination> port <port number> proto <protocol name>
1
ufw allow from x.x.x.x/xx