Skip to main content

一键部署 VLESS-Reality + IKEv2 VPN 的综合代理工具

Project description

Nexus-VPN

Publish to PyPI PyPI version

一键部署 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 目录:

许可证

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

nexus_vpn-0.1.5.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nexus_vpn-0.1.5-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file nexus_vpn-0.1.5.tar.gz.

File metadata

  • Download URL: nexus_vpn-0.1.5.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nexus_vpn-0.1.5.tar.gz
Algorithm Hash digest
SHA256 dbbb3de4ebbd28fc87ad461e31803b500cce67861ac887b6e1ecb235ed9ca2a8
MD5 a4ce03583b81a2895b0cff9efd1c78e4
BLAKE2b-256 a78fdb0f6de3dc483d2f6c25f10bed366cbb95c84d46ac465c196e8b95edb2cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for nexus_vpn-0.1.5.tar.gz:

Publisher: python-publish.yml on alphajc/nexus-vpn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nexus_vpn-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: nexus_vpn-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nexus_vpn-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 285e7b0eb843b7a4595ba98a8ae7dbd0b56bed40c0967cd4669b0ba82f5d8fed
MD5 c08f921e4d8ba5ea19e54c74601ce646
BLAKE2b-256 dad17fa6e0c29e98757f76e553e4584c5f3769c4fa99a8b49d43c94287bb2f6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for nexus_vpn-0.1.5-py3-none-any.whl:

Publisher: python-publish.yml on alphajc/nexus-vpn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page