/vpn/wg List WireGuard config does not poulate peer "allowed ip" address without a description
-
25.07.01
This end point works, but if the allowed_ip description is missing, the endpoint does not return the allowed ip address's. If i set a description for allowed_ip it returns fine.
Description for allowed_ips is not a mandatory field in the webgui, so i would think it should always return the allowed ips.
-
Looks like it's already been fixed in 25.11 - running the following shows the peer:
$ curl -s --unix-socket /var/run/pfnet-controller.sock http://unix/api/vpn/wg | jq . ... "peers": { "item": [ { "enabled": true, "tun": "tun_wg0", "descr": "", "endpoint": "", "port": "", "persistentkeepalive": "", "publickey": ..., "presharedkey": "", "allowedips": [ { "address": "172.25.200.100/32", "descr": "" } ] }, -
@marcosm Thanks! Will look forward to the update
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.