Modify the way the firewall allows remote access to this port under the Linux server

  • 2021-01-22 08:25:45
  • OfStack

1. Problem description

For security reasons, the newly built server cluster only opens a few specified ports, but after the ports are open, remote access is still not possible. After searching the problem, it is found that the firewall needs to open the ports, so use the following command to modify the firewall to allow remote access to the ports

2. Solutions

Execute the following statement using the command line:

firewall-cmd --zone=public --add-port= < strong > 80/tcp < /strong > --permanent

firewall-cmd --reload


Related articles: