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"
相關文章
相關標籤/搜索