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

    Slowness on Wireguard configuration pages when large number of peers are present

    Scheduled Pinned Locked Moved
    WireGuard
    2
    2
    95
    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.
    • M
      ManofWax
      last edited by

      Hello,
      I'm affected by this bug: https://redmine.pfsense.org/issues/13405

      As I wrote on the bugtracking page I took a look at the code and I see that the slowness is due to the line $config = parse_config(true); which is called every time a wireguard config page is opened.

      Right now I have 300 peers and wireguard page took more than 60 seconds to load, if I comment out $config = parse_config(true); the load time is instantaneous and everything seems to work fine.

      I'm writing here hoping some developer can optimize this code because I think commenting out the line as I did in my test doesn't seem the best solution, I think the configuration should be parsed only when actually needed and not on every page load

      M 1 Reply Last reply Reply Quote 0
      • M
        michmoor LAYER 8 Rebel Alliance @ManofWax
        last edited by

        @ManofWax

        known issue

        https://redmine.pfsense.org/issues/13405

        no fix…

        Firewall: NetGate,Palo Alto-VM,Juniper SRX
        Routing: Juniper, Arista, Cisco
        Switching: Juniper, Arista, Cisco
        Wireless: Unifi, Aruba IAP
        JNCIP,CCNP Enterprise

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