CentOS 8 open ports in firewall

FIREWALL OPEN ALL PORTS

Often, our customers have their own servers with different OS installed, and sometimes there are some difficulties with the configuration and installation of web applications. To keep a record of the problems we encountered, I’ll post a brief description and solution on the blog.

Today we received a server with CentOS 8 on the board, after installing all the software, several ports were blocked by the firewall.

In this case, it wasn’t that difficult to apply the rules to the firewall, but it’s worse to share:

 
  1. Check the current active zone (it will show something like dmz, public, etc.):

    firewall-cmd --get-active-zones

  2. In my case it was public, so I run firewall-cmd --zone=public --add-port=8080/tcp --permanent

  3. And after firewall reloaded firewall-cmd --reload the port become open to the World.

Share This

What's your reaction?
0Smile1Lol0Wow1Love1Sad0Angry

Leave a comment