You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed some important issues with the DefGuard client that need attention. Here's a breakdown of what's happening:
The Issues I'm Facing
The DefGuard client is experiencing multiple critical issues, including unexpected errors, connection failures, shutdown problems, and difficulties establishing WireGuard VPN connections due to routing configuration errors.
Specific Problems
After several connect-disconnect cycles, I'm getting an "unexpected error" message that prevents further connections.
Once this error occurs, it's impossible to establish new connections.
When closing the app, sometimes the WireGuard interface remains active and continues to send packets.
The client repeatedly fails to create WireGuard interfaces (it tries from utun3 to utun17) due to routing configuration errors.
How to Reproduce These Issues
Open the DefGuard client.
Try to connect to a VPN location.
You'll likely see a failure to create a WireGuard interface due to routing errors.
If a connection is established, disconnect from the VPN.
Repeat steps 2-4 several times.
Try to connect again after encountering the "unexpected error".
Close the app and monitor network activity - you may see ongoing activity.
What Should Be Happening
The client should remain stable through multiple connect/disconnect cycles.
Errors should be handled gracefully, allowing further connection attempts.
Closing the app should properly shut down all processes and network interfaces.
The client should be able to create a WireGuard interface without issues.
Routes should be correctly configured for the new interface.
A VPN connection should be successfully established.
The Error Message I'm Seeing
I consistently get this error:
Failed to configure routing for WireGuard interface utunX: Command returned error status: ``
(X is a number between 3 and 17, depending on which interface it's trying to set up)
Potential Causes
I'm considering several possibilities:
Resource leaks during connect/disconnect cycles.
State inconsistencies between the client and server.
Accumulation of minor errors leading to system instability.
Possible race conditions or deadlocks in multi-threaded operations.
Incomplete cleanup during app shutdown.
Desynchronization between the main app and the WireGuard service.
Conflicts with existing network configurations or other VPN software.
Technical Details
Client Version: 0.4.0
Operating System: macOS
Date First Observed: July 29, 2024
Frequency: Consistently reproducible after multiple connect/disconnect cycles
Relevant Logs
[2024-07-30][02:22:53][INFO][defguard_client::appstate] Removed connection from active connections: ActiveConnection {
location_id: 1,
connected_from: "192.168.0.7",
start: 2024-07-30T02:21:24.813626,
interface_name: "utun3",
connection_type: Location,
}
[2024-07-30][02:22:54][ERROR][defguard_client::appstate] Couldn't find connection with id: 1, connection_type: Location in active connections.
[2024-07-30][02:22:54][WARN][defguard_client::utils] Interface data stream disconnected
Impact
These issues are severely affecting the reliability and usability of the DefGuard client. I'm unable to establish VPN connections, and there's a risk of unexpected data transmission and resource consumption even after the application is closed.
This issue needs to be prioritized for investigation and resolution. Any insights or suggestions would be greatly appreciated.
Let me know if you need any more information or clarification.
The text was updated successfully, but these errors were encountered:
Hey team,
I've noticed some important issues with the DefGuard client that need attention. Here's a breakdown of what's happening:
The Issues I'm Facing
The DefGuard client is experiencing multiple critical issues, including unexpected errors, connection failures, shutdown problems, and difficulties establishing WireGuard VPN connections due to routing configuration errors.
Specific Problems
How to Reproduce These Issues
What Should Be Happening
The Error Message I'm Seeing
I consistently get this error:
Failed to configure routing for WireGuard interface utunX: Command returned error status: ``
(X is a number between 3 and 17, depending on which interface it's trying to set up)
Potential Causes
I'm considering several possibilities:
Technical Details
Relevant Logs
[2024-07-30][02:22:53][INFO][defguard_client::appstate] Removed connection from active connections: ActiveConnection {
location_id: 1,
connected_from: "192.168.0.7",
start: 2024-07-30T02:21:24.813626,
interface_name: "utun3",
connection_type: Location,
}
[2024-07-30][02:22:54][ERROR][defguard_client::appstate] Couldn't find connection with id: 1, connection_type: Location in active connections.
[2024-07-30][02:22:54][WARN][defguard_client::utils] Interface data stream disconnected
Impact
These issues are severely affecting the reliability and usability of the DefGuard client. I'm unable to establish VPN connections, and there's a risk of unexpected data transmission and resource consumption even after the application is closed.
This issue needs to be prioritized for investigation and resolution. Any insights or suggestions would be greatly appreciated.
Let me know if you need any more information or clarification.
The text was updated successfully, but these errors were encountered: