https://www.first2host.co.uk/f/open-port-iptables/
Для нормальной работы Web сервера на Centos 6.3 на Web сервере необходимо открыть следующие порты:
22 ssh
80 http
443 https
25 smtp сервер
В терминале Centos 6.3 последовательно выполните следующие команды:
su
iptables -I INPUT -p tcp --dport 22 -m state --state NEW -j ACCEPT
iptables -I INPUT -p tcp --dport 80 -m state --state NEW -j ACCEPT
iptables -I INPUT -p tcp --dport 443 -m state --state NEW -j ACCEPT
iptables -I INPUT -p tcp --dport 25 -m state --state NEW -j ACCEPT
service iptables save
Перезагружаем iptables:
systemctl restart iptables