Skip to content
项目

djylb/nps has 1,115 GitHub stars and 158 forks. GitHot measured +10 in 7 days. Last checked 2026-11-11 00:17 UTC. Last push 2026-11-02.

这些数字如何统计

NPS Enhanced — Lightweight intranet tunneling and reverse proxy with Web UI | NPS 内网穿透 反向代理 增强版 全修 新版 二开

可以做什么

  • Multi-Protocol SupportSupports TCP/UDP forwarding, HTTP/HTTPS reverse proxy, HTTP/SOCKS5 proxy, P2P mode, Proxy Protocol support, HTTP/3 support, and more for different private-network access scenarios.
  • Cross-Platform DeploymentCompatible with major platforms such as Linux and Windows, and can be easily installed as a system service.
  • Web Management InterfaceProvides real-time monitoring of traffic, connection status, and client states with an intuitive and user-friendly interface.
  • Security and ExtensibilityBuilt-in features such as encrypted transmission, traffic limiting, access expiration controls, certificate management, and certificate renewal help improve security and manageability.

实测星标增长

24小时
更新延迟
7天
+10
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README_zh.md

原文

NPS 内网穿透 (全修)

GitHub Stars GitHub Forks Release GitHub All Releases

在 GitHub 点击右上角 ⭐ Star 以支持我在空闲时间继续开发

由于 GitHub 限制浏览器语言为中文(Accept-Language=zh-CN) 访问 *.githubusercontent.com ,图标可能无法正常显示。


简介

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

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

NPS Web UI


主要特性

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

  • 跨平台部署
    支持 Linux、Windows 等主流平台,可轻松安装为系统服务。

  • Web 管理界面
    实时监控流量、连接情况以及客户端状态,操作简单直观。

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

  • 多连接协议
    支持 TLS、QUIC、WSS 等协议连接服务器。


安装与使用

更多详细配置请参考 文档(部分内容可能未更新)。

Android | OpenWrt

Docker 部署

DockerHub: NPS NPC

GHCR: NPS NPC

有真实IP获取需求可配合 mmproxy 使用。例如:SSH

NPS 服务端

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 客户端

docker pull duan2001/npc
docker run -d --restart=always --name npc --net=host duan2001/npc -launch="npc://[email protected]:8024?type=tls"

提示: -launch 命令请从 NPS Web 管理端的客户端页面复制,避免手动填写错误。

服务端安装

Linux

# 安装(默认配置路径:/etc/nps/;二进制文件路径:/usr/bin/)
wget -qO- https://fastly.jsdelivr.net/gh/djylb/nps@master/install.sh | sudo sh -s nps
sudo nps install
sudo nps start|stop|restart|uninstall

# 更新
sudo nps update
sudo nps update-force

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

Windows

Windows 7 用户请使用 old 结尾版本 64 / 32 请先补齐 SP1、系统补丁和根证书,详见 Windows 7 系统更新与证书说明。

.\nps.exe install
.\nps.exe start|stop|restart|uninstall

# 更新
.\nps.exe update
.\nps.exe update-force

客户端安装

Linux

wget -qO- https://fastly.jsdelivr.net/gh/djylb/nps@master/install.sh | sudo sh -s npc
sudo /usr/bin/npc install -launch="npc://[email protected]:8024?type=tls"
sudo npc start|stop|restart|uninstall

# 更新
sudo npc update
sudo npc update-force

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

Windows

Windows 7 用户请使用 old 结尾版本 64 / 32 请先补齐 SP1、系统补丁和根证书,详见 Windows 7 系统更新与证书说明。

.\npc.exe install -launch="npc://[email protected]:8024?type=tls"
.\npc.exe start|stop|restart|uninstall

# 更新
.\npc.exe update
.\npc.exe update-force

提示: 客户端支持同时连接多个服务器,示例:
npc -launch="npc://key1@xxx:123?type=tls" -launch="npc://key2@yyy:456?type=tls"


探索相关项目