Skip to content

Comments

feat(wireguard): bringing wireguard to UI#1370

Merged
Tbaile merged 24 commits intomainfrom
wireguard-tunnels
Sep 30, 2025
Merged

feat(wireguard): bringing wireguard to UI#1370
Tbaile merged 24 commits intomainfrom
wireguard-tunnels

Conversation

@Tbaile
Copy link
Collaborator

@Tbaile Tbaile commented Sep 11, 2025

This pull request introduces significant improvements to WireGuard VPN management and integration in the NethSecurity platform. The changes include a major redesign of the WireGuard API, enhanced device handling for WireGuard interfaces, new dependency and post-commit script management, and improved package installation for WireGuard tools. The documentation has also been thoroughly updated to reflect the new API endpoints and usage.

WireGuard API Redesign and Documentation Updates

  • The WireGuard API in packages/ns-api/README.md has been completely reworked: new endpoints for managing servers, peers, and client tunnels have been introduced, with clear separation between server and client tunnel management. The documentation now provides detailed examples and parameter explanations for each endpoint, replacing the previous, less structured API. [1] [2]

Device Handling Improvements

  • Device listing logic in packages/ns-api/files/ns.devices now properly filters WireGuard interfaces, ensuring devices pending deletion are excluded and that WireGuard devices are correctly associated with their interfaces. VPN zone detection now includes WireGuard interfaces. [1] [2] [3] [4]

Build and Dependency Management

  • The wireguard-tools package is now a dependency of ns-api, ensuring required tools are available for WireGuard management.
  • The build system for WireGuard tools now installs the wg-json binary, facilitating JSON-based WireGuard status queries.

Post-commit Script Enhancements

  • A new post-commit script restart-wireguard.py has been added to reload WireGuard interfaces when configuration changes are detected, improving reliability and automation of VPN updates. [1] [2]

Luci Configuration Adjustments

  • Luci package configuration has been updated to set WireGuard-related packages to modular (m) instead of always enabled, providing more flexible package selection and reducing unnecessary installations.

Closes #1352

@Tbaile Tbaile requested a review from gsanchietti September 30, 2025 09:25
@Tbaile Tbaile marked this pull request as ready for review September 30, 2025 09:25
@Tbaile Tbaile merged commit 536238a into main Sep 30, 2025
2 checks passed
@Tbaile Tbaile deleted the wireguard-tunnels branch September 30, 2025 09:48
markVnl pushed a commit to markVnl/nethsecurity that referenced this pull request Oct 12, 2025
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.

Wireguard Tunnels

2 participants