ufw rules code example
Example 1: ufw allow postgresql
sudo ufw allow 5432
Example 2: allow ip through ufw
sudo ufw allow from 15.15.15.0/24 to any port 22
Example 3: ufw rules
sudo ufw allow from 15.15.15.0/32 to any port 22
sudo ufw allow 5432
sudo ufw allow from 15.15.15.0/24 to any port 22
sudo ufw allow from 15.15.15.0/32 to any port 22