add ufw rule code example
Example 1: ufw allow postgresql
sudo ufw allow 5432
Example 2: ufw allow port
sudo ufw allow http
sudo ufw allow 80
Example 3: allow ip through ufw
sudo ufw allow from 15.15.15.0/24 to any port 22
sudo ufw allow 5432
sudo ufw allow http
sudo ufw allow 80
sudo ufw allow from 15.15.15.0/24 to any port 22