Document toolboxDocument toolbox

Configure the Firewall

  1. Enable and start firewalld

    systemctl enable firewalld systemctl start firewalld



  2. Allow SSH (22)

    firewall-cmd --zone=public --add-service=ssh --permanent



  3. Allow http (80)

    firewall-cmd --zone=public --add-service=http --permanent



  4. Allow https (443)



  5. Allow smtp (25)



  6. Optionally allow MySQL



  7. Reload the firewall configuration



Related pages