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:
-
Check the current active zone (it will show something like dmz, public, etc.):
firewall-cmd --get-active-zones
-
In my case it was
public
, so I runfirewall-cmd --zone=public --add-port=8080/tcp --permanent
-
And after firewall reloaded
firewall-cmd --reload
the port become open to the World.