firewalld examples on RHEL7

firewall-cmd –get-zones

MYSQL SERVER

firewall-cmd --permanent --zone=public --change-interface=eth0
firewall-cmd --permanent --zone=public --list-all
firewall-cmd --permanent --zone=public --add-port=3306/tcp
firewall-cmd --reload

CONFLUENCE, JIRA & QUALYS

firewall-cmd --permanent --zone=public --add-port=80/tcp
firewall-cmd --permanent --zone=public --add-port=443/tcp
firewall-cmd --permanent --zone=public --add-port=8090/tcp
firewall-cmd --permanent --zone=public --add-port=8080/tcp
firewall-cmd --permanent --zone=public --add-port=9090/tcp
firewall-cmd --permanent --zone=public --add-port=9080/tcp
firewall-cmd --reload

WEB SERVICES

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

ZABBIX – agent

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

DENODO

firewall-cmd --permanent --zone=public --change-interface=eth0
firewall-cmd --permanent --zone=public --add-port=9999/tcp
firewall-cmd --permanent --zone=public --add-port=9090/tcp
firewall-cmd --reload
firewall-cmd --permanent --zone=public --list-all

ORACLE DB & QUALYS

firewall-cmd --permanent --zone=public --change-interface=eth0
firewall-cmd --permanent --zone=public --add-port=1521/tcp
firewall-cmd --permanent --zone=public --add-source=13.15.19.1/27
firewall-cmd --reload
firewall-cmd --permanent --zone=public --list-all

 

ENTERPRISE MANAGER SERVER

firewall-cmd --permanent --zone=public --change-interface=eth0
firewall-cmd --permanent --zone=public --change-interface=eno16780032
firewall-cmd --permanent --zone=public --add-port=7803/tcp
firewall-cmd --permanent --zone=public --add-port=9803/tcp
firewall-cmd --permanent --zone=public --add-port=7102/tcp
firewall-cmd --permanent --zone=public --add-port=4903/tcp
firewall-cmd --permanent --zone=public --add-port=9851/tcp
firewall-cmd --reload
firewall-cmd --permanent --zone=public --list-all

ENTERPRISE MANAGER AGENT

firewall-cmd --permanent --zone=public --add-port=3872/tcp
firewall-cmd --reload
firewall-cmd --permanent --zone=public --list-all
Please follow and like us:

Add a Comment

Your email address will not be published. Required fields are marked *