Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug]: FullVPN always includes both IPv4 and IPv6

オープン
#1,177 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
networking

調査の方向性

Look at the WireGuard configuration generation for FullVPN mode, likely in the client's connection logic. The issue is about the allowed IPs list including both IPv4 and IPv6 when the endpoint only supports one. Start by finding where the VPN peer configuration is built, then add logic to detect the endpoint's supported IP version and adjust allowed IPs accordingly. Testing will involve setting up a test environment with IPv4-only and dual-stack endpoints.

索引モデルが issue の本文から書いたものです。

説明

bug
Summary

In our setup Defguards runs in an IPv4 only setup, at home most of our employees have a dual-stack network. If a connection is established via the FullVPN option, this results in a config similar to this:

interface: wg0
  public key: (hidden)
  private key: (hidden)
  listening port: ...
  fwmark: ...

peer: vfuhGa...55kYBA=
  preshared key: (hidden)
  endpoint: <ip4-address>:51821
  allowed ips: 0.0.0.0/0, ::/0
  latest handshake: 1 minute, 8 seconds ago
  transfer: 241.43 KiB received, 288.03 KiB sent
  persistent keepalive: every 25 seconds

So despite the endpoint not having a valid IPv6 defguard/wg will attempt to route IPv6 traffic through the VPN. Depending on the tool this results in long waiting times because only after a timeout will the retry fall back to an IPv4 address which can be routed.

Ideas to solve this which come to mind:

  • automatically check which IPvX the endpoint supports and only route this traffic
  • do the check, if only v4 or v6 is supported notify the user and only resume after explicit consent (because the user expects all traffic means all traffic and not only all IPv4 traffic)
  • expose a toggle/command-line option to tweak the all-traffic behaviour

P.S.: From my perspective this counts as a bug but feel free to reclassify it, because depending what your initial expectations are this behaves as expected.

Steps to reproduce
  1. run defguard with a v4 only setup
  2. connect via Full-Traffic Option
  3. try to connect to a IPv6 page
Expected behavior

Route only the protocol which is supported by the endpoint.

Actual behavior

Attempts to route IPv6 traffic to a IPv4 only endpoint. Resulting in timeouts and disconnects.

Defguard version

Core: v2.1.0, Edge: v2.1.0, Client: v2.1.0

Environment details

Core: Ubuntu 22.04, Edge: Ubuntu 22.04, Gateway: Opnsense, Client: Archlinux

Deployment / install method

Docker / Docker Compose

Relevant logs / output

Relevant configuration (redacted)

主要言語
Rust
スター
370
フォーク
39
平均マージ
20時間 1分
マージ済み PR(30日)
37

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DefGuard/client のほかの issue

DefGuard/client の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。