How to open port for a specific IP address with firewall-cmd on CentOS?

on February 23rd, 2017 by Hades | No Comments »

If you would like to open port 1234 for the IP address 1.2.3.4 with the firewall-cmd command on a CentOS 7.1 server:

Check the zone file later to inspect the XML configuration

Reload the firewall