一键部署 VLESS-Reality + IKEv2 VPN 的综合代理工具
Project description
Nexus-VPN
一键部署 VLESS-Reality + IKEv2 VPN 的综合代理工具。
功能特性
- VLESS-Reality: 基于 Xray-core,支持 Reality 协议,抗检测能力强
- IKEv2 VPN: 基于 StrongSwan,支持证书认证和 EAP 认证
- 多用户管理: 支持添加、删除、列出用户
- 自动配置: 自动配置 BBR、NAT 转发、防火墙规则
- iOS/macOS 支持: 自动生成
.mobileconfig配置文件
系统要求
- 操作系统: Ubuntu 20.04+ / Debian 11+ / CentOS 7+
- Python: 3.8+
- 权限: 需要 root 权限运行
安装
pip install nexus-vpn
快速开始
部署服务
sudo nexus-vpn install --domain your-server-ip
查看状态
sudo nexus-vpn status
用户管理
# 添加 V2Ray 用户
sudo nexus-vpn user add --type v2ray --username alice
# 添加 IKEv2 证书用户
sudo nexus-vpn user add --type ikev2-cert --username bob
# 添加 IKEv2 EAP 用户
sudo nexus-vpn user add --type ikev2-eap --username charlie
# 列出所有用户
sudo nexus-vpn user list
# 删除用户
sudo nexus-vpn user del --type v2ray --username alice
卸载
sudo nexus-vpn uninstall
命令参考
| 命令 | 说明 |
|---|---|
nexus-vpn install |
部署 VPN 服务 |
nexus-vpn uninstall |
卸载 VPN 服务 |
nexus-vpn status |
查看服务状态 |
nexus-vpn user add |
添加用户 |
nexus-vpn user del |
删除用户 |
nexus-vpn user list |
列出用户 |
安装选项
nexus-vpn install --domain <域名/IP> [--proto vless] [--reality-dest <目标网站>]
| 选项 | 默认值 | 说明 |
|---|---|---|
--domain |
(必填) | 服务器公网 IP 或域名 |
--proto |
vless |
协议类型 |
--reality-dest |
www.microsoft.com:443 |
Reality 偷取的目标网站 |
客户端配置
V2Ray / Xray
安装完成后会自动显示连接 URL 和二维码,支持以下客户端:
- iOS/macOS: Shadowrocket, V2Box
- Android: v2rayNG
- Windows: v2rayN
- Linux: v2rayA
IKEv2
- iOS/macOS: 使用生成的
.mobileconfig文件 - Windows: 手动配置 IKEv2 VPN
- Android: strongSwan VPN Client
文档
详细文档请参阅 docs 目录:
- 文档首页 - 功能概述与快速开始
- 安装指南 - 系统要求、部署步骤
- 用户管理 - 用户添加、删除、列出
- 客户端配置 - 各平台客户端配置方法
- 命令参考 - CLI 命令详细说明
- 故障排除 - 常见问题诊断与解决
许可证
MIT License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nexus_vpn-0.1.0.tar.gz.
File metadata
- Download URL: nexus_vpn-0.1.0.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c1334b5104fe15b22c7a4b7ddf8ad6948fa33d2a5e8b30b77421cf64a6f1795
|
|
| MD5 |
dbc48579f7bd833ecc5eae22e8e5b80d
|
|
| BLAKE2b-256 |
edb9cd33c550d89282111d59ddc0382e0afcb60d2f6f0d2334b67c640912a1e6
|
Provenance
The following attestation bundles were made for nexus_vpn-0.1.0.tar.gz:
Publisher:
python-publish.yml on alphajc/nexus-vpn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nexus_vpn-0.1.0.tar.gz -
Subject digest:
2c1334b5104fe15b22c7a4b7ddf8ad6948fa33d2a5e8b30b77421cf64a6f1795 - Sigstore transparency entry: 763326558
- Sigstore integration time:
-
Permalink:
alphajc/nexus-vpn@3ad47c30b1d6b6a71589d03189293cacf99899a2 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/alphajc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@3ad47c30b1d6b6a71589d03189293cacf99899a2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file nexus_vpn-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nexus_vpn-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd6f1e0d0e151ce30fc3da21481d63a869ae4dd8e57f97ffa19e2925b76bd320
|
|
| MD5 |
37db73c9bc125cadc255fdfabe53d0ad
|
|
| BLAKE2b-256 |
e216375f4f24ffec40c3466d00dccba2bdf6aa985c9a089761d2acea80985791
|
Provenance
The following attestation bundles were made for nexus_vpn-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on alphajc/nexus-vpn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nexus_vpn-0.1.0-py3-none-any.whl -
Subject digest:
dd6f1e0d0e151ce30fc3da21481d63a869ae4dd8e57f97ffa19e2925b76bd320 - Sigstore transparency entry: 763326561
- Sigstore integration time:
-
Permalink:
alphajc/nexus-vpn@3ad47c30b1d6b6a71589d03189293cacf99899a2 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/alphajc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@3ad47c30b1d6b6a71589d03189293cacf99899a2 -
Trigger Event:
release
-
Statement type: