CentOS 7:

firewalld

systemctl disable firewalld
systemctl stop firewalld
systemctl status firewalld
systemctl start firewalld

sudo firewall-cmd –permanent –add-service=ssh
sudo firewall-cmd –permanent –remove-service=ssh
sudo firewall-cmd –permanent –add-port=4444/tcp

sudo firewall-cmd –permanent –add-service=http
sudo firewall-cmd –permanent –add-service=https

SELINUX

vi /etc/sysconfig/selinux