Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    25.11 Long Boot Time Issue with WireGuard

    Scheduled Pinned Locked Moved WireGuard
    21 Posts 8 Posters 3.6k Views 7 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.
    • G Offline
      g.shaffer
      last edited by

      25.11 takes more than 10 minute to complete booting up. It seems to hang when executing early shell commands to configure WireGuard tunnels. This started when I upgraded to 25.11, I've never had this behavior in any previous version of pfSense.

      I don't believe it's related to any IPv6 or TSO issues as all of the tunnels are IPv4 and TSO was disabled on a fresh upgrade.

      I hit 'ctl+t' several times during the boot up to see what it might be hanging on.

      IMG_7319.jpg

      IMG_7321.jpg

      Any idea what might be going on?

      1 Reply Last reply Reply Quote 0
      • G g.shaffer referenced this topic on
      • Bob.DigB Offline
        Bob.Dig LAYER 8
        last edited by Bob.Dig

        Today I ran into this (or something similar) too. I can't say if pfSense would boot at all, I didn't had the patience to wait 10 minutes I guess but it was close to that minutes. I restored from backup.

        Before, I decided to give pfSense another chance for all of my privacy-VPN-WG-tunnels, so I "imported*" them all *(by hand) from my OpenWRT-Routers, it was work. Also changed gateways and so on. Everything seem to work until I rebooted pfSense, it wouldn't come back. Tried it multiple times.

        Capture.PNG
        On the screenshot there is none of the Privacy-VPNs shown, only S2S-Tunnels that do work without any problems before.

        To me that looks like a serious problem.

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

          This has been reported before, see:

          • https://redmine.pfsense.org/issues/15435
          • https://forum.netgate.com/topic/187532/long-boot-times-when-using-wireguard-vpn-was-syslogs-starts-late-in-the-boot-process-leading-to-misrepresentation-of-events-incorrect-time-stamps

          Give this patch a try:

          diff --git a/src/usr/local/pkg/wireguard/includes/wg.inc b/src/usr/local/pkg/wireguard/includes/wg.inc
          index 42e16a8b3992..ddd115ae609a 100644
          --- a/src/usr/local/pkg/wireguard/includes/wg.inc
          +++ b/src/usr/local/pkg/wireguard/includes/wg.inc
          @@ -315,9 +315,13 @@ function wg_destroy_rogue_peers($tunnel_name, &$cmds = null) {
           function wg_resolve_endpoints() {
           	// Get the latest info
           	wg_globals();
          +	$dns_available = get_dnsavailable();
           
           	// Do we have any peers?
           	foreach (config_get_path('installedpackages/wireguard/peers/item', []) as $peer) {
          +		if (!$dns_available && !is_ipaddr($peer['endpoint'])) {
          +			continue;
          +		}
           		// Strip port if empty
           		$peer['port'] = !empty($peer['port']) ? ":{$peer['port']}" : null;
           
          
          
          Bob.DigB G 3 Replies Last reply Reply Quote 2
          • M marcosm moved this topic from General pfSense Questions on
          • Bob.DigB Offline
            Bob.Dig LAYER 8 @marcosm
            last edited by

            @marcosm said in 25.11 Long Boot Time Issue with WireGuard:

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

            The newly added tunnels had FQDN endpoints. I will stick with OpenWRT though.

            1 Reply Last reply Reply Quote 0
            • G Offline
              g.shaffer @marcosm
              last edited by

              @marcosm said in 25.11 Long Boot Time Issue with WireGuard:

              https://forum.netgate.com/topic/187532/long-boot-times-when-using-wireguard-vpn-was-syslogs-starts-late-in-the-boot-process-leading-to-misrepresentation-of-events-incorrect-time-stamps

              I should be able to try this patch out later today.

              While I understand this may be similar to a previously reported problem (over a year ago), This issue was not present in 25.07.1 or any previous version of pfSense+ I've used and I've had numerous WG tunnels setup and working since its implementation in pfSense.

              tinfoilmattT 1 Reply Last reply Reply Quote 0
              • tinfoilmattT Offline
                tinfoilmatt LAYER 8 @g.shaffer
                last edited by

                @g.shaffer Maybe all your other tunnels weren't configured to use FQDNs? Maybe you just never noticed increased boot times under <25.11?

                The Redmine issue is worth a thorough read.

                G 1 Reply Last reply Reply Quote 0
                • G Offline
                  g.shaffer @marcosm
                  last edited by

                  @marcosm The patch worked. The FW booted up quickly and once I could log into the GUI, the WG tunnels were all up and connected.

                  Half of my WG tunnels use FQDN, but this was not an issue with 25.07.1. So, Is this a regression or did the timing and mechanics of setting up WG tunnels change significantly in 25.11?

                  tinfoilmattT 1 Reply Last reply Reply Quote 0
                  • G Offline
                    g.shaffer @tinfoilmatt
                    last edited by g.shaffer

                    @tinfoilmatt I did read both of the threads marcosm provided.

                    I've been rebooting between 25.11 and 25.07.1 lately, I'm very aware of the time it takes my FW to boot up. This behavior was not happening in 25.07.1

                    1 Reply Last reply Reply Quote 0
                    • tinfoilmattT Offline
                      tinfoilmatt LAYER 8 @g.shaffer
                      last edited by

                      @g.shaffer The "Affected Plus Version" noted in the Redmine issue is/was 24.03.

                      1 Reply Last reply Reply Quote 0
                      • Bob.DigB Offline
                        Bob.Dig LAYER 8
                        last edited by Bob.Dig

                        After the related (I think) WireGuard-Update from today, WireGuard was not restarting itself on one of two machines, so I did the update on the remote one outside of the tunnel.

                        M S 2 Replies Last reply Reply Quote 0
                        • M Offline
                          marcosm Netgate @Bob.Dig
                          last edited by marcosm

                          @Bob.Dig With the patch tunnels with FQDN endpoints are skipped when the DNS server isn't responding. If that happens the tunnel endpoint will be tried again after the time specified in "Endpoint Hostname Resolve Interval". If you mean the service didn't automatically start after reinstalling/updating the package, I believe that's always been the case. It should start automatically on reboots and system upgrades however.

                          G Bob.DigB 2 Replies Last reply Reply Quote 1
                          • G Offline
                            g.shaffer @marcosm
                            last edited by

                            @marcosm Will this patch make into the next update?

                            M 1 Reply Last reply Reply Quote 0
                            • S Offline
                              slu @Bob.Dig
                              last edited by

                              @Bob.Dig said in 25.11 Long Boot Time Issue with WireGuard:

                              WireGuard was not restarting itself on one of two machines

                              Same here, must restart the wg service manual.

                              pfSense Gold subscription

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                mfld LAYER 8 @g.shaffer
                                last edited by

                                @g.shaffer said in 25.11 Long Boot Time Issue with WireGuard:

                                @marcosm Will this patch make into the next update?

                                Patch no longer relevant! They just dropped a new wireguard package into the 25.11, 25.07 repos. You can remove the patch, update wireguard package in the package manager and reboot. This just came out a few hours ago.

                                luckman212L 1 Reply Last reply Reply Quote 1
                                • Bob.DigB Offline
                                  Bob.Dig LAYER 8 @marcosm
                                  last edited by

                                  @marcosm said in 25.11 Long Boot Time Issue with WireGuard:

                                  If you mean the service didn't automatically start after reinstalling/updating the package, I believe that's always been the case.

                                  Yep that is what I meant. On One it did and on the other it didn't.

                                  1 Reply Last reply Reply Quote 0
                                  • luckman212L Offline
                                    luckman212 LAYER 8 @mfld
                                    last edited by

                                    @mfld Yep here's the commit in case anyone wants to review the change

                                    https://github.com/pfsense/FreeBSD-ports/commit/2ad4d245c30b2543e9661c00d497a72624062611

                                    1 Reply Last reply Reply Quote 1
                                    • L Offline
                                      lnguyen
                                      last edited by

                                      Seems this issue has returned with the update to pfSense+ 26.03

                                      G 1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        g.shaffer @lnguyen
                                        last edited by

                                        @lnguyen I haven't updated to 26.03 yet, maybe I will hold off for a bit.

                                        L G 2 Replies Last reply Reply Quote 0
                                        • L Offline
                                          lnguyen @g.shaffer
                                          last edited by

                                          @g.shaffer

                                          It stalled at “Configuring WireGuard tunnels…”

                                          I rolled back to 25.11.1 Boot Environment and it booted

                                          1 Reply Last reply Reply Quote 0
                                          • G Offline
                                            g.shaffer @g.shaffer
                                            last edited by

                                            I updated my box this morning (25.11.1 to 26.03), I did notice a short pause at the "Configuring WireGuard tunnels...", but it was nothing like the original issue. Paused for about a minute.

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