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.
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.
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