firewalld centos 7 firewall

por | 27 febrero, 2018


firewall-cmd --get-default-zone
firewall-cmd --get-services
sudo firewall-cmd --zone=public --permanent --add-service=http
sudo firewall-cmd --zone=public --permanent --add-service=https
sudo firewall-cmd --zone=public --permanent --add-service=samba
sudo firewall-cmd --permanent --zone=public --add-port=3838/tcp
sudo firewall-cmd --permanent --zone=public --add-port=8787/tcp
sudo firewall-cmd --reload