How to build and deploy the video streaming platform EasyNVR under Centos8 to penetrate the firewall to the designated port?

When we set up the streaming media server EasyNVR, different sites have different requirements for their own network conditions and server environment. Sometimes the software on the site is successfully deployed, the program starts normally, and the port is monitored normally, but the external IP cannot work properly. The problem of access.

problem analysis####

We have analyzed a lot of issues like this before. The program starts normally, and the problem is likely to occur on the network or server firewall. We first found that the network is connected through ping ip, and then found that the server firewall is running through the server site:

In some cases, due to the need to protect the on-site [Data Security] (https://cloud.tencent.com/solution/data_protection?from=10680), the project team is not allowed to directly turn off the firewall, so the problem can only be solved by port penetration on the firewall.

solution####

First of all, we find out the corresponding ports required by the software. The ports that EasyNVR needs to open to the outside world are 10800 and 10935. Then open the corresponding port of the firewall on the server.

Open method:

Excuting an order:

Open port 10935 tcp:
firewall-cmd --zone=public --add-port=10935/tcp --permanent

Open 10800 port tcp:
firewall-cmd --zone=public --add-port=10800/tcp --permanent

There will be corresponding prompts for successful opening:

Finally, reload the firewall:
firewall-cmd reload

After setting, the webpage can be successfully accessed.

Recommended Posts

How to build and deploy the video streaming platform EasyNVR under Centos8 to penetrate the firewall to the designated port?
How to quickly build Nginx server under CentOS
[Video] Teach you how to install the latest Linux version of QQ under Centos 8
Use Jexus 5.8.2 to deploy and run Asp.net core under Centos
Deploy and optimize Tomcat under Centos
Step by step teach you how to open and close the ubuntu firewall
How to modify the hostname on CentOS 8