Debian: sudo ufw allow PORT. CentOS: sudo firewall-cmd --zone=public --permanent --add-port=PORT/tcp sudo firewall-cmd --reload