ufw allow connections from localhost code example Example: ufw allow http and httpw connections sudo ufw allow http sudo ufw allow https sudo ufw enable