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:

Lightning-fast VPS hosting with enterprise SSD storage, global data centers, and 99.99% uptime. Built for developers, trusted by enterprises.
support@solvps.com
1-888-256-8213
These cookies are essential for the website to function and cannot be switched off.
These cookies enable enhanced functionality and personalization, such as live chat or video.
These cookies help us understand how visitors interact with the website (for example Google Analytics).
These cookies are used to deliver and measure advertising (for example Meta Pixel, LinkedIn Insight, Google Ads).