Skip to content

feat: Add NordVPN NordLynx (WireGuard) integration#3827

Merged
MHSanaei merged 8 commits intoMHSanaei:mainfrom
PedroLiu1999:feature/nord-vpn
Apr 19, 2026
Merged

feat: Add NordVPN NordLynx (WireGuard) integration#3827
MHSanaei merged 8 commits intoMHSanaei:mainfrom
PedroLiu1999:feature/nord-vpn

Conversation

@PedroLiu1999
Copy link
Copy Markdown
Contributor

Description

This PR introduces comprehensive support for NordVPN outbounds using the WireGuard (NordLynx) protocol. It enables users to easily route traffic through NordVPN servers directly from the 3x-ui panel.

Key Features

  • Integrated NordVPN Service: A new backend service (NordService) for interacting with NordVPN APIs.
  • API v2 Integration: Uses the latest NordVPN API for real-time server discovery, load information, and intelligent sorting (lowest load first).
  • Authentication Modes:
    • Access Token: Simplified login using a NordVPN access token to automatically retrieve credentials.
    • Private Key: Support for manual private key entry for advanced users.
  • Frontend Refinements:
    • Dedicated NordVPN modal with server load indicators.
    • Automated server selection and configuration generation.
    • Proactive "Logout/Cleanup" that removes orphaned outbounds and routing rules.
  • Advanced Routing:
    • Direct integration into the "Basics" settings for easy routing rule creation.
    • Individual tags for each NordVPN server (nord-<hostname>) for precise traffic control.
  • Multi-language Support: Full localization in English, Farsi, and Chinese.

Changes

Backend

  • [NEW] web/service/nord.go: Core logic for NordVPN API interaction.
  • web/controller/xray_setting.go: Endpoints for server fetching and credential management.
  • web/service/setting.go: Storage and retrieval of NordVPN configuration.

Frontend

  • [NEW] web/html/modals/nord_modal.html: The main user interface for NordVPN setup.
  • web/html/settings/xray/outbounds.html: Added "NordVPN" quick-access button.
  • web/html/settings/xray/basics.html: Added NordVPN routing rule configuration.
  • web/html/xray.html: Enhanced template processing for dynamic outbound tags.

Localization

  • web/translation/translate.en_US.toml
  • web/translation/translate.fa_IR.toml
  • web/translation/translate.zh_CN.toml

Type of Changes

  • New feature

Screenshots

image image image

@PedroLiu1999 PedroLiu1999 marked this pull request as ready for review February 19, 2026 16:28

This comment was marked as outdated.

@MHSanaei
Copy link
Copy Markdown
Owner

MHSanaei commented Mar 4, 2026

Thanks for your PR
please give me access to edit your PR

@PedroLiu1999
Copy link
Copy Markdown
Contributor Author

Thanks for your PR please give me access to edit your PR

Permission granted

@MHSanaei MHSanaei force-pushed the main branch 2 times, most recently from 0dc4df2 to f0f98c7 Compare March 17, 2026 22:01
@MHSanaei MHSanaei force-pushed the main branch 3 times, most recently from 46d9a0e to ea53da9 Compare April 19, 2026 22:18
@MHSanaei MHSanaei merged commit 36b2a58 into MHSanaei:main Apr 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants