Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    /vpn/wg List WireGuard config does not poulate peer "allowed ip" address without a description

    Scheduled Pinned Locked Moved Multi-Instance Management
    3 Posts 2 Posters 91 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      powerguy42
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • M Offline
        marcosm Netgate
        last edited by

        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": ""
                        }
                    ]
                },
        
        P 1 Reply Last reply Reply Quote 0
        • P Offline
          powerguy42 @marcosm
          last edited by

          @marcosm Thanks! Will look forward to the update

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.