[Bug]: Predefined traffic sets default route on macOS

Abierto
#1,331 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust
Área
networking

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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)

Lenguaje dominante
Rust
Estrellas
373
Forks
42
Merge medio
20 h 54 min
PR fusionados (30 d)
51

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DefGuard/client

Todos los issues de DefGuard/client

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.