nps内网穿透搭建与配置
NPS搭建相关内容
- NPS配置文档:https://ehang-io.github.io/nps/#/
- NPS安装包:https://github.com/ehang-io/nps/releases
- NPS源码:https://github.com/ehang-io/nps
搭建与配置的要求
- 一台拥有公网IP的服务器
- 开放端口例如:(8080,8024,80,443)等
- 安装nps软件包(源码安装、linux、darwin、windows)几种系统安装方法
Windows搭建与配置
Windows服务端配置
进入到/conf/nps.conf进行修改 简单修改配置,需要修改更多请了解相关文档
#web web_host=你的服务端管理域名a.abc.com web_username=admin(可以更改) web_password=123(密码必须更改,为了安全起见) web_port=8080 web_ip=0.0.0.0
Windows服务端搭建
- 以管理员身份运行cmd,进入目录执行nps.exe install
- 安装完成后配置文件转移于C:Program Files ps
- nps启动服务nps.exe start
- nps停止和重启,nps stop和nps restart
- 登录界面添加客户端
- 以客户端数据
Windows客户端搭建与配置
删除conf/npc.conf里的内容,保留基础配置
[common] server_addr=服务器的域名或者IP:8024 conn_type=tcp vkey=rn5grvqw5a5i4z27 auto_reconnection=true max_conn=1000 flow_limit=1000 rate_limit=1000 basic_username=11 basic_password=3 web_username=user web_password=1234 crypt=true compress=true #pprof_addr=0.0.0.0:9999
使用powershell进入目录运行 ./npc.exe -server=IP或域名:8024 -vkey=rn5grvqw5a5i4z27 -type=tcp或者双击npc.exe 添加域名解析进行测试
