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

Html comments Symbols for marking text comments in Html

HTML comments, we often need to make some HTML co...

Detailed explanation of the use of Docker commit

Sometimes you need to install certain dependencie...

Analysis of the methods of visual structure layout design for children's websites

1. Warm and gentle Related address: http://www.web...

Detailed tutorial on how to create a user in mysql and grant user permissions

Table of contents User Management Create a new us...

CSS3 to achieve simple white cloud floating background effect

This is a very simple pure CSS3 white cloud float...

JS realizes picture digital clock

This article example shares the specific code of ...

Examples of preview functions for various types of files in vue3

Table of contents Preface 1. Preview of office do...

Tutorial on compiling and installing MySQL 5.7.17 from source code on Mac

1. Download and unzip to: /Users/xiechunping/Soft...

How to add vim implementation code examples in power shell

1. Go to Vim's official website to download t...

Summary of how to add root permissions to users in Linux

1. Add a user . First, use the adduser command to...

Detailed explanation of FTP environment configuration solution (vsftpd)

1. Install vsftpd component Installation command:...

Node.js solves the problem of Chinese garbled characters in client request data

Node.js solves the problem of Chinese garbled cha...