[Bug]: Predefined traffic sets default route on macOS

Đang mở
#1,331 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Lỗi
Độ rõ ràng
Khá 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

Start by tracing how the macOS client configures routes when connecting with predefined traffic; the issue identifies netstat -rn as the way to observe the result but names no source files or tests. Compare the routes before and after connecting and investigate why a default route appears. Done when predefined traffic installs only the location’s configured routes and leaves the default route unchanged.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
Summary

When choosing predefined traffic and connecting to the VPN, a default route is set (visible via netstat -rn).
We assumed that predefined traffic only routes the subnets defined in our location. A customer who relies on Defguard can't work properly, because his other active WireGuard tunnels can't function while Defguard hijacks the traffic.

Steps to reproduce
  1. Check routes via netstat -rn (especially default routes).
  2. Connect via predefined traffic.
  3. Check routes via netstat -rn again.
  4. There is now a default route on the Defguard interface.
Expected behavior

No default route is set, only the routes defined in the location for predefined traffic.

Workaround by a customer: Create a VM on macOS, install the Defguard client in it and use the VM as a router. Only allow the routes that are required for using Defguard.

Actual behavior

A default route is set, which prevents customers and potentially colleagues from using multiple VPNs at the same time as Defguard.

Defguard version

All version on the latest 2.1 stable build

Environment details

macOS (any tested version after 2024)

Deployment / install method

Docker / Docker Compose

Relevant logs / output

Relevant configuration (redacted)

Ngôn ngữ chính
Rust
Star
373
Fork
42
Merge trung bình
20 giờ 54 phút
Pull request đã merge (30 ngày)
51

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DefGuard/client

Tất cả issue của DefGuard/client

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.