Blog
centos-logo-banner

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: 

This entry was posted in Guides & How To's, Linux VPS, Security, Tech Support, VPS Hosting. Bookmark the permalink. Trackbacks are closed, but you can post a comment.
  • okay servers

    Thanks for the command, that works fine.
    —————————————-
    http://okayservers.com




Questions? We're here to help.