Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Feature]: Optional automatic VPN disconnect when connected to the corporate network

未关闭
#1,309 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
活跃
技术栈
rust

调研方向

Start by locating the desktop client's VPN connection management and network detection entry points. The issue proposes several possible trust signals but does not choose a detection method or define configuration and completion criteria; clarify those design decisions with maintainers before implementation.

由索引模型根据 Issue 内容生成。

描述

feature
Problem description

We are using the Defguard Desktop Client as a WireGuard client and no Defguard Core deployment.

A common scenario in our environment is that users connect to the VPN while working from home and later return to the office with the same notebook. Once connected to the corporate network via Ethernet, docking station, or Wi-Fi, the VPN tunnel remains active.

While this is expected behavior, the VPN connection is typically no longer needed at that point. Many users do not notice that the tunnel is still connected, which can lead to unnecessary VPN usage, routing overhead, and additional support requests.

Proposed solution

Add an optional feature that automatically disconnects an active VPN tunnel when the client detects that the device is connected directly to the corporate network.

The detection method could be user-configurable and based on characteristics such as:

Trusted network definitions
Local subnet(s)
Default gateway
DNS servers or DNS suffixes
Wi-Fi SSID

The goal is simply to allow Defguard to recognize that the device has returned to a trusted local network where the VPN connection is no longer required.

Alternatives considered

Users can manually disconnect the VPN after returning to the office.

However, this relies entirely on user awareness and is easy to forget, especially for users who frequently move between home office and corporate locations.

Automatic detection would provide a more seamless experience and reduce the need for user intervention.

Impact

Important

主要语言
Rust
星标
371
派生
42
平均合并
1 天 1 小时
30 天内合并 PR
54

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DefGuard/client 的其他 Issue

查看 DefGuard/client 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。