Configuring the Firewall

EL6

Step 1: Access the server through SSH with an account with administrative privileges;

Step 2: Open ports TCP/80 and TCP/443 on the local firewall with the following commands:

# iptables -I INPUT 1 -p tcp -m tcp --dport 443 -j ACCEPT
# iptables -I INPUT 1 -p tcp -m tcp --dport 80 -j ACCEPT

Step 3: Save the local firewall configurations with the following command:

# /etc/init.d/iptables save

EL7

Step 1: Access the server through SSH with an account with administrative privileges;

Step 2: Open ports TCP/80 and TCP/443 on the local firewall with the following commands:

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