How to modify the firewall on a Linux server to allow remote access to the port

How to modify the firewall on a Linux server to allow remote access to the port

1. Problem Description

For security reasons, the newly built server cluster only opens a few designated ports, but after the ports are opened, remote access is still not possible. After finding 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. Solution

Use the command line to execute the statement as follows:

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

firewall-cmd --reload

The above method of modifying the firewall under the Linux server to allow remote access to this port is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM.

You may also be interested in:
  • Open the Windows server port (take port 8080 as an example)
  • Solution to the error "Windows cannot find the -n file" when installing xampp on win7 (after successful installation, port 443 is occupied and the apache server cannot start normally)
  • Windows Server System Service Port Comparison Table
  • How to modify the default port number of the Tomcat server
  • Win2008 R2 WEB Server Security Settings Guide: Modify 3389 port and update patch
  • How to modify the PASV port range of the FTP server under IIS
  • Modify the server 3389 remote login port
  • Diagram of the process of modifying the default port of remote desktop in Windows server

<<:  Ubuntu Server 16.04 MySQL 8.0 installation and configuration graphic tutorial

>>:  vue perfectly realizes el-table column width adaptation

Recommend

Why Use DOCTYPE HTML

You know that without it, the browser will use qui...

Issues with Rancher deployment and importing K8S clusters

Rancher deployment can have three architectures: ...

Sharing tips on using scroll bars in HTML

Today, when we were learning about the Niu Nan new...

Analyzing ab performance test results under Apache

I have always used Loadrunner to do performance t...

How to operate Docker and images

Find mirror We can search for images from the Doc...

Sequence implementation method based on MySQL

The team replaced the new frame. All new business...

Two ways to connect WeChat mini program to Tencent Maps

I've been writing a WeChat applet recently an...

HTML table markup tutorial (37): background image attribute BACKGROUND

Set the background image for the table header. Yo...

How to find the specified content of a large file in Linux

Think big and small, then redirect. Sometimes Lin...

The use of mysql unique key in query and related issues

1. Create table statement: CREATE TABLE `employee...

A Brief Analysis of the Differences between “:=” and “=” in MySQL

= Only when setting and updating does it have the...