In some CentOS 7 installations, the system firewall will block most incoming traffic by default. You may need to allow all traffic from a specific IP address, such as your local computer or management server, in order to log in to the server.
We will use the new firewall-cmd tool to setup the firewall exception. Using “11.22.33.44” as our example IP address, let’s add the new rule:
firewall-cmd--zone=public--add-rich-rule='rule family="ipv4" source address="11.22.33.44" accept'
This command allows all traffic from the source IPv4 address 11.22.33.44 to pass, including all ports.
This article applies to:
- CentOS 7