Software Development, Linux, and Windows

Notes on Software Development, Linux, and Windows

Open mysql on firewall in CentOS 7

Login or set user to root
su -
See the before of what services are open on the public zone
firewall-cmd --zone=public --list-services
Open up access to mysql on the public zone
firewall-cmd --zone=public --add-service=mysql
See the after of what services are open on the public zone
firewall-cmd --zone=public --list-services
Once verified, modify the permanent firewall rules
firewall-cmd --zone=public --permanent --add-service=mysql
Finally, list what service are accessable on the permanent zone
firewall-cmd --zone=public --permanent --list-services