ufw rules allow from any to port code example Example 1: ufw allow postgresql sudo ufw allow 5432 Example 2: ufw allow port sudo ufw allow http sudo ufw allow 80