<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/ DTD/wml_1.1.xml">

<wml>
<head>
<meta http-equiv="cache-control" content="max-age=180,private" />
</head>
<card title="NPS 内网穿透(最新版本)">
<p>
作者:<a href="index.php?action=showuser&amp;userid=1&amp;hash=">admin</a><br />时间:2026-07-27 14:15<br />分类:<a href="index.php?action=list&amp;cid=3&amp;hash=">电脑技术</a><br />内容:
NPS 内网穿透(最新版本)




Github：https://github.com/djylb/nps


下载：https://github.com/djylb/nps/releases


安卓客户端：https://github.com/djylb/npsclient


Openwrt：https://github.com/djylb/nps-openwrt


说明文档：https://d-jy.net/docs/nps


其他下载：https://github.com/yisier/nps/releases


简介


NPS 是一款轻量高效的内网穿透代理服务器，支持多种协议（TCP、UDP、HTTP、HTTPS、SOCKS5 等）转发。它提供直观的 Web 管理界面，使得内网资源能安全、便捷地在外网访问，同时满足多种复杂场景的需求。


由于NPS停更已久，本仓库整合社区更新二次开发而来。


主要特性


多协议支持


TCP/UDP 转发、HTTP/HTTPS 转发、HTTP/SOCKS5 代理、P2P 模式、Proxy Protocol支持、HTTP/3支持等，满足各种内网访问场景。


跨平台部署


支持 Linux、Windows 等主流平台，可轻松安装为系统服务。


Web 管理界面


实时监控流量、连接情况以及客户端状态，操作简单直观。


安全与扩展


内置加密传输、流量限制、到期限制、证书管理续签等多重功能，保障数据安全。


多连接协议


支持 TCP、KCP、TLS、QUIC、WS、WSS 协议连接服务器。


安装与使用


Docker 部署


NPS 服务端




XML/HTML代码


    docker pull duan2001/nps

    docker run -d --restart=always --name nps --net=host -v $(pwd)/conf:/conf -v /etc/localtime:/etc/localtime:ro duan2001/nps




提示： NPS 安装完成后，请先修改 nps.conf（如监听端口、Web 管理账号等）再启动服务。


NPC 客户端


XML/HTML代码


    docker pull duan2001/npc

    docker run -d --restart=always --name npc --net=host duan2001/npc -server=xxx:123,yyy:456 -vkey=key1,key2 -type=tls,tcp -log=off





提示： -server、-vkey、-type 等参数请从 NPS Web 管理端的客户端页面复制，避免手动填写错误。


直接安装


服务端安装


Linux


XML/HTML代码


    # 安装（默认配置路径：/etc/nps/；二进制文件路径：/usr/bin/）

    wget -qO- https://fastly.jsdelivr.net/gh/djylb/nps@master/install.sh | sudo sh -s nps  

    nps install

    nps start|stop|restart|uninstall

    # 更新

    nps update &amp;&amp; nps restart





提示： 首次安装后请先编辑 /etc/nps/nps.conf，确认配置无误后再执行 nps start。


Windows


不想手动判断架构、旧版包或安装目录时，可使用仓库根目录的 install.ps1


Windows 7 / 8 / 8.1 用户请使用 old 结尾版本 64 / 32


XML/HTML代码


    .\install.ps1 nps

    .\nps.exe install

    .\nps.exe start|stop|restart|uninstall

    # 更新

    .\nps.exe stop

    .\nps-update.exe update

    .\nps.exe start





客户端安装


Linux


XML/HTML代码


    wget -qO- https://fastly.jsdelivr.net/gh/djylb/nps@master/install.sh | sudo sh -s npc

    /usr/bin/npc install -server=xxx:123,yyy:456 -vkey=xxx,yyy -type=tls -log=off

    npc start|stop|restart|uninstall

    # 更新

    npc update &amp;&amp; npc restart





提示： npc install 命令中的参数请以 NPS Web 管理端客户端页面生成的命令为准。


Windows


不想手动判断架构、旧版包或安装目录时，可使用仓库根目录的 install.ps1


Windows 7 / 8 / 8.1 用户请使用 old 结尾版本 64 / 32


XML/HTML代码


    .\install.ps1 npc

    .\npc.exe install -server=&quot;xxx:123,yyy:456&quot; -vkey=&quot;xxx,yyy&quot; -type=&quot;tls,tcp&quot; -log=&quot;off&quot;

    .\npc.exe start|stop|restart|uninstall

    # 更新

    .\npc.exe stop

    .\npc-update.exe update

    .\npc.exe start





提示： 客户端支持同时连接多个服务器，示例：


npc -server=xxx:123,yyy:456,zzz:789 -vkey=key1,key2,key3 -type=tcp,tls


这里 xxx:123 使用 tcp, yyy:456 和 zzz:789 使用tls


如需连接旧版本服务器请添加 -proto_version=0


注：服务器后台默认管理端口8081，账号admin密码123


</p><p>
<a href="index.php?action=login&amp;hash=">立即登陆发表评论</a><br />
</p>
<p><a href="index.php?action=list&amp;hash=">返回日志列表</a><br /><a href="index.php?action=index&amp;hash=">返回主页</a></p>
</card>
</wml>
