nps 配置内网穿透

要求

  1. 一台公网服务器
  2. 若干台内网服务器

服务器安装

$ 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

配置文件目录:linux

/etc/nps

命令用法:git

nps start|stop|restart|uninstall|update or nps-update update

启动:github

$ nps start # 以守护进程启动

nps默认配置文件使用了80,443,8080,8024端口:web

  • 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"
相关文章
相关标签/搜索