[Bug]: FullVPN always includes both IPv4 and IPv6
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 65/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- networking
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- run defguard with a v4 only setup
- connect via Full-Traffic Option
- 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)
- Ngôn ngữ chính
- Rust
- Star
- 370
- Fork
- 39
- Merge trung bình
- 20 giờ 1 phút
- Pull request đã merge (30 ngày)
- 37
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DefGuard/client
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
bug
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
-
Handle corrupt app database Đang mởdesign
Tất cả issue của DefGuard/client
Issue tương tự
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
yantrikos/yantrik-os#255 ·
-
Replayed reasoning items send "content": null, which the Responses API schema does not permit Đang mởbug CLI custom-model
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
raphamorim/rio#1956 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
rust-bitcoin/rust-bitcoin#6930 · 1 bình luận ·