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
Describe the bug
When creating a new location in the defguard web interface, we provide a name that can be long.
The defguard client (at least on linux) normalises this location name (removes dash characters for example) and uses it to name the wireguard interface. There is a limit of 15 characters for this name that can make the wireguard interface creation fail.
I am unsure if this bug should be reported for defguard or defguard-client. I am reporting it on defguard because that is the component where location names are defined.
To Reproduce
Steps to reproduce the behavior:
Go to the defguard web interface and create a new location named for example 'aws-common-us-east-1'
Grant access to this location to a user
Open the linux defguard client and add the instance for this user
Try to connect
Expected behavior
The connection should work.
Instead it fails. The system logs show:
2025-01-08T11:04:43.304130Z ERROR defguard_wireguard_rs::netlink: Failed to create WireGuard interface: Netlink payload error: Numerical result out of range (os error 34)
at /srv/github/defguard/.cargo/git/checkouts/wireguard-rs-fba7499ea125cbe3/fbb88ee/src/netlink.rs:249
in defguard_client::service::create_interface with interface_name: "awscommonuseast1"
in defguard_client::service::defguard_service
2025-01-08T11:04:43.304157Z ERROR defguard_client::service: Failed to create WireGuard interface awscommonuseast1: Netlink error: Failed to create WireGuard interface
at src/service/mod.rs:118
in defguard_client::service::create_interface with interface_name: "awscommonuseast1"
in defguard_client::service::defguard_service
The problem is that awscommonuseast1 is 16 characters long, while linux interfaces names cannot exceed 15 characters in length.
Version information
Defguard Core version: v1.1.4
Defguard Client version: v1.0.1
Debian 12
The text was updated successfully, but these errors were encountered:
Describe the bug
When creating a new location in the defguard web interface, we provide a name that can be long.
The defguard client (at least on linux) normalises this location name (removes dash characters for example) and uses it to name the wireguard interface. There is a limit of 15 characters for this name that can make the wireguard interface creation fail.
I am unsure if this bug should be reported for defguard or defguard-client. I am reporting it on defguard because that is the component where location names are defined.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The connection should work.
Instead it fails. The system logs show:
The problem is that
awscommonuseast1
is 16 characters long, while linux interfaces names cannot exceed 15 characters in length.Version information
The text was updated successfully, but these errors were encountered: