Allow All Traffic from an IPv4 Address through CentOS 7 Firewall

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
logo

Lightning-fast VPS hosting with enterprise SSD storage, global data centers, and 99.99% uptime. Built for developers, trusted by enterprises.

Get Help

support@solvps.com

1-888-256-8213

Live Chat Now

© 2025 Hostway Services, Inc. dba SolVPS. All trademarks, service marks, product names, and logos appearing on this website are the property of their respective owners.