allow port in firewall linux code example
Example 1: firewall allow port ubuntu
sudo ufw allow 2222
Example 2: open firewall port in linux
Debian: sudo ufw allow PORT. CentOS: sudo firewall-cmd --zone=public --permanent --add-port=PORT/tcp sudo firewall-cmd --reload