I would like to open port 4567
for the IP address 1.2.3.4
with the firewall-cmd
command on a CentOS 7.1 server.
How can I achieve this, as the documentation I could find was too specific on this?
I would like to open port 4567
for the IP address 1.2.3.4
with the firewall-cmd
command on a CentOS 7.1 server.
How can I achieve this, as the documentation I could find was too specific on this?
Try this command
Check the zone file later to inspect the XML configuration
Reload the firewall
Create a new zone to accommodate this configuration. FirewallD zones are defined by source addresses and by interfaces.
Add
--permanent
of course to the latter two commands to make them permanent.