how to change port in firewall rules in ubuntu code example Example: firewall allow port ubuntu sudo ufw allow 2222