nps 配置内网穿透
文章目录
要求
- 一台公网服务器
- 若干台内网服务器
服务器安装
$ wget https://github.com/ehang-io/nps/releases/download/v0.26.10/linux_amd64_server.tar.gz
$ tar -xvf linux_amd64_server.tar.gz
$ ./nps install配置文件目录:
/etc/nps命令用法:
nps start|stop|restart|uninstall|update or nps-update update启动:
$ nps start # 以守护进程启动nps默认配置文件使用了80,443,8080,8024端口:
- 80与443端口为域名解析模式默认端口
- 8080为web管理访问端口
- 8024为网桥端口,用于客户端与服务器通信
客户端安装
$ wget https://github.com/ehang-io/nps/releases/download/v0.26.10/linux_amd64_client.tar.gz
$ tar -xvf linux_amd64_client.tar.gz启动:
$ ./npc -server ip:8024 -vkey "nps后台生成的客户端的key"
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论