ehang-io / nps

一款轻量级、高性能、功能强大的内网穿透代理服务器。支持tcp、udp、socks5、http等几乎所有流量转发,可用来访问内网网站、本地支付接口调试、ssh访问、远程桌面,内网dns解析、内网socks5代理等等……,并带有功能强大的web管理端。a lightweight, high-performance, powerful intranet penetration proxy server, with a powerful web management terminal.
https://ehang.io/nps/documents
GNU General Public License v3.0
29.75k stars 5.37k forks source link

The latest version : nps-v0.26.10/linux_amd64_server.tar.gz, can't run in aliyun ECS server, please help to resolve it. #1155

Closed hantoy closed 1 year ago

hantoy commented 1 year ago

Describe the bug

After i install the nps and start nps, don't have nps in task list. and don't have task to listening 8080 port.

To Reproduce install the nps in my aliyun ECS server, then start the nps, but can't run.

Expected behavior after i start nps, don't have nps in task list, it didn't run in system.

Screenshots or logs 1

**Server (please complete the following information):

My aliyun ECS server : Linux version 3.10.0-1160.62.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Tue Apr 5 16:57:59 UTC 2022

Additional context Add any other context about the problem here.

hantoy commented 1 year ago

have resolved the issue.

===================== How to resolve the issue?

Step 1: run nps, it will show the log 图片

we can see the 80 port have been used by other program, so we need to change the port.

Step 2: chang the 80 port to 81 port, if the 81 port, you have been used, you can change to other port. vi /ect/nps/conf/nps.conf 图片

Step 3: nps restart ps -ef|grep nps netstat -anp|grep ":81" 图片

Step 4: check the "IP:8080" in browser. If you use the aliyun, you need to open the 8080 port and 81 port in aliyun security policy(安全策略).

Also if the 8080 port has been used , you also need change the 8080 port to other port.

That's all, working fine.