ubuntu firewall ufw allow ip and port code example Example: firewall allow port ubuntu sudo ufw allow 2222