# nps-server **Repository Path**: djd221/nps-server ## Basic Information - **Project Name**: nps-server - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-10 - **Last Updated**: 2026-03-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # NPS 内网穿透 (全修) [![GitHub Stars](https://img.shields.io/github/stars/djylb/nps.svg)](https://github.com/djylb/nps) [![GitHub Forks](https://img.shields.io/github/forks/djylb/nps.svg)](https://github.com/djylb/nps) [![Release](https://github.com/djylb/nps/workflows/Release/badge.svg)](https://github.com/djylb/nps/actions) [![GitHub All Releases](https://img.shields.io/github/downloads/djylb/nps/total)](https://github.com/djylb/nps/releases) > 在 [GitHub](https://github.com/djylb/nps) 点击右上角 ⭐ Star 以支持我在空闲时间继续开发 > 由于 GitHub 限制浏览器语言为中文(Accept-Language=zh-CN) 访问 *.githubusercontent.com ,图标可能无法正常显示。 - [English](https://github.com/djylb/nps/blob/master/README.md) --- ## 简介 NPS 是一款轻量高效的内网穿透代理服务器,支持多种协议(TCP、UDP、HTTP、HTTPS、SOCKS5 等)转发。它提供直观的 Web 管理界面,使得内网资源能安全、便捷地在外网访问,同时满足多种复杂场景的需求。 由于[NPS](https://github.com/ehang-io/nps)停更已久,本仓库整合社区更新二次开发而来。 - **提问前请先查阅:** [文档](https://d-jy.net/docs/nps/) 与 [Issues](https://github.com/djylb/nps/issues) - **欢迎参与:** 提交 PR、反馈问题或建议,共同推动项目发展。 - **讨论交流:** 加入 [Telegram 交流群](https://t.me/npsdev) 与其他用户交流经验。 - **Android:** [djylb/npsclient](https://github.com/djylb/npsclient) - **OpenWrt:** [djylb/nps-openwrt](https://github.com/djylb/nps-openwrt) - **Mirror:** [djylb/nps-mirror](https://github.com/djylb/nps-mirror) ![NPS Web UI](https://cdn.jsdelivr.net/gh/djylb/nps/image/web.png) --- ## 主要特性 - **多协议支持** TCP/UDP 转发、HTTP/HTTPS 转发、HTTP/SOCKS5 代理、P2P 模式、Proxy Protocol支持、HTTP/3支持等,满足各种内网访问场景。 - **跨平台部署** 支持 Linux、Windows 等主流平台,可轻松安装为系统服务。 - **Web 管理界面** 实时监控流量、连接情况以及客户端状态,操作简单直观。 - **安全与扩展** 内置加密传输、流量限制、到期限制、证书管理续签等多重功能,保障数据安全。 - **多连接协议** 支持 TCP、KCP、TLS、QUIC、WS、WSS 协议连接服务器。 --- ## 安装与使用 更多详细配置请参考 [文档](https://d-jy.net/docs/nps/)(部分内容可能未更新)。 ### [Android](https://github.com/djylb/npsclient) | [OpenWrt](https://github.com/djylb/nps-openwrt) ### Docker 部署 ***DockerHub***: [NPS](https://hub.docker.com/r/duan2001/nps) [NPC](https://hub.docker.com/r/duan2001/npc) ***GHCR***: [NPS](https://github.com/djylb/nps/pkgs/container/nps) [NPC](https://github.com/djylb/nps/pkgs/container/npc) > 有真实IP获取需求可配合 [mmproxy](https://github.com/djylb/mmproxy-docker) 使用。例如:SSH #### NPS 服务端 ```bash 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 ``` #### NPC 客户端 ```bash 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 ``` ### 服务端安装 #### Linux ```bash # 安装(默认配置路径:/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 && nps restart ``` #### Windows > Windows 7 用户请使用 old 结尾版本 [64](https://github.com/djylb/nps/releases/latest/download/windows_amd64_server_old.tar.gz) / [32](https://github.com/djylb/nps/releases/latest/download/windows_386_server_old.tar.gz) ```powershell .\nps.exe install .\nps.exe start|stop|restart|uninstall # 更新 .\nps.exe stop .\nps-update.exe update .\nps.exe start ``` ### 客户端安装 #### Linux ```bash 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 && npc restart ``` #### Windows > Windows 7 用户请使用 old 结尾版本 [64](https://github.com/djylb/nps/releases/latest/download/windows_amd64_client_old.tar.gz) / [32](https://github.com/djylb/nps/releases/latest/download/windows_386_client_old.tar.gz) ```powershell .\npc.exe install -server="xxx:123,yyy:456" -vkey="xxx,yyy" -type="tls,tcp" -log="off" .\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` ---