Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

Installing FirewallD CentOS 7

yum install firewalld -y
systemctl status iptables
systemctl stop iptables
systemctl mask iptables
systemctl start firewalld
systemctl enable firewalld.service
systemctl status firewalld

NTP:

firewall-cmd --add-service=ntp --permanent
firewall-cmd --reload

XYMon:

firewall-cmd --zone=public --add-port=1984/tcp --permanent
firewall-cmd --reload

MariaDB Galera Cluster:

http://galeracluster.com/documentation-webpages/firewallsettings.html

firewall-cmd --zone=public --add-service=mysql --permanent
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --zone=public --add-port=4567/tcp --permanent
firewall-cmd --zone=public --add-port=4568/tcp --permanent
firewall-cmd --zone=public --add-port=4444/tcp --permanent
firewall-cmd --zone=public --add-port=4567/udp --permanent
firewall-cmd --reload

HTTP(s):

firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=443/tcp --permanent
firewall-cmd --zone=public --add-port=80/udp --permanent
firewall-cmd --zone=public --add-port=443/udo --permanent
firewall-cmd --reload

PaceMaker High-Availability:

firewall-cmd --permanent --add-service=high-availability
firewall-cmd --reload
  • No labels