Skip to content

Generated config file is invalid when the AllowedIPs field is left blank #636

@t-aleksander

Description

@t-aleksander

If the location doesn't have any allowedips set (which is optional), its generated config file (downloadable during the enrollment or from the dashboard) will be impossible to parse by the wg-quick command or the wireguard GUI client.

[#] ip link add lokacja type wireguard
[#] wg setconf lokacja /dev/fd/63
Line unrecognized: `AllowedIPs='
Configuration parsing error
[#] ip link delete dev lokacja

Currently the AllowedIPs line looks like this in such scenario:

AllowedIPs =

Instead, if there are no allowedips specified, it should be empty altogether. The issue doesn't occur when importing the config via the defguard client menu.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions