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

    All Wireguard gateways disabled upon boot/reboot

    Scheduled Pinned Locked Moved WireGuard
    6 Posts 4 Posters 1.0k Views 4 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.
    • LaxarusL Offline
      Laxarus
      last edited by

      Hi,
      pfSense Plus 26.03.1
      For some reason, all my wireguard gateways are disabled upon boot/reboot and no matter what I did, I could not find out what is the problem.

      I have interfaces assigned for WG which are enabled.

      Upon boot/reboot, I have to enable WG Gateways manually.

      Checking console during boot, I see that the interface configuration for WG interfaces are done.
      WG_S2S
      VPNAC_WG

      However, there are two entries which are confusing to me:

      route: route has not been found
      route: route has not been found
      

      c425e9d0-38cc-4e61-ad08-2df8548b0cc7-iKVM_capture.jpg

      checking the configuration history, I see that for some reason wireguard gateways have all been disabled. Who is disabling them????

      9a738157-2518-4657-ae8d-7ffa0a0b7ec7-image.png

      Checking the wireguard package,
      I see that the service is stopped upon boot.

      fd40304a-bc7f-4ab8-a136-67d3896fe94a-image.png

      I tried service watchdog but it also did not help

      199d5145-b20d-45a1-8a34-4a2f0f312fb3-image.png
      and my logs

      d1d32264-da55-4888-b00f-b70a7e9b9019-image.png

      I either have to enable the gateways manually or go to one of the wireguard interface assignment and save it without changing anything to make it work.

      This is a huge problem for remote managing via a s2s wg if that is the only means to access the remote gateway.

      1 Reply Last reply Reply Quote 0
      • tinfoilmattT Offline
        tinfoilmatt LAYER 8
        last edited by

        I'd remove the WireGuard watchdog. It seems to be leading to some kind of race condition. Test a reboot without it.

        Those "route: route has not been found" log entries are 'normal'. I see a bunch of those at boot on a system with multiple WG tunnels configured, presumably due to the order of initialization.

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

          Yup, can confirm that there is almost surely a timing or race condition issue during boot when you have a S2S WG tunnel or 2 configured. There are already a couple of WireGuard related redmines open, eg here and here so hopefully some touchups will be coming soon.

          I get those route: route has not been found errors logged too. But, eventually my tunnels settle into a happy state without needing manual intervention. A touch /verbose_rc to enable debug boot logging might shed some more light on your situation.

          LaxarusL 1 Reply Last reply Reply Quote 0
          • LaxarusL Offline
            Laxarus @luckman212
            last edited by

            @luckman212
            Interesting issues but they are mostly related to failover gateway configuration.

            I also forgot to mention, I started experiencing this issue after playing with some system tunables and loader.conf. They were the only changes made. Mostly for tuning.

            1 Reply Last reply Reply Quote 0
            • LaxarusL Offline
              Laxarus
              last edited by

              @tinfoilmatt
              Tried with watchdog wireguard disabled > no luck
              @luckman212
              Tried touch /verbose_rc > nothing related to wireguard being disabled on the logs, everything seems normal

              1 Reply Last reply Reply Quote 0
              • I Offline
                iphoneking
                last edited by

                Here’s what I did to resolve it for me:

                1. After reboot, I went into the disabled WireGuard gateway, clicked save and applied the changes.
                2. Went back into the gateway, unticked the disabled checkbox, saved and applied the changes.

                After doing these steps the WireGuard gateway now starts enabled after a reboot.

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