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

Three ways to prevent MySQL from inserting duplicate data

Create a new table CREATE TABLE `person` ( `id` i...

Simply understand the writing and execution order of MySQL statements

There is a big difference between the writing ord...

How to reset MySQL root password

Table of contents 1. Forgot the root password and...

Understanding the CSS transform-origin property

Preface I recently made a fireworks animation, wh...

React's component collaborative use implementation

Table of contents Nesting Parent-child component ...

CSS example code for implementing sliding doors

The so-called sliding door technology means that ...

How to manage cached pages in Vue

Table of contents Problem 1: Destruction 1. How t...

Right align multiple elements in the same row under div in css

Method 1: float:right In addition, floating will ...

Steps for Vue to use Ref to get components across levels

Vue uses Ref to get component instances across le...

Detailed explanation of the usage of the ESCAPE keyword in MySQL

MySQL escape Escape means the original semantics ...

JavaScript implements simple calculator function

This article example shares the specific code of ...

Recommend a cool interactive website made by a front-end engineer

Website link: http://strml.net/ By Samuel Reed Ti...