Navigation

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

    Wireguard Site-to-Site Gateways disabled after reboot - service not starting

    WireGuard
    4
    16
    256
    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.
    • B
      buzz2912 last edited by

      Hi,

      it has been 7 months now.
      Since the 22.05 release the is a bug in pfsense/wireguard.

      In 2.6.0 everything works perfekt

      Tested today the 2.7.0 again. Same issue.
      After the upgrade the service and gateway come up once.
      After a reboot the gateways stay disabled and there service does not start.

      I do not want the go somewhere else, but there is no help for that problem anywhere.

      Sebastian

      On Reddit the discussion is about the PPPOE connection which might cause the problem.
      link text

      Here is a post on Lawrence systems forums:
      link text

      and another one:
      link text

      Here is my closed bug report:
      link text

      and here is the old bug report which did not workout for me:
      link text

      Bob.Dig 1 Reply Last reply Reply Quote 0
      • Bob.Dig
        Bob.Dig LAYER 8 @buzz2912 last edited by

        @buzz2912 I had a PPPoE connection before and used 22.05 with WireGuard and had no problem.

        pfSense on Hyper-V

        Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        1 Reply Last reply Reply Quote 0
        • B
          buzz2912 last edited by

          I have no idea why there are not more people with this problem.
          My site-to-site connections do not use NAT. I wanted to see the source IP address to filter traffic. Maybe that is a reason why this happens.
          Anyone else on 22.05 or 2.7.0 using wireguard site-to-site without NAT and not having problems?

          S.

          Bob.Dig 1 Reply Last reply Reply Quote 0
          • Bob.Dig
            Bob.Dig LAYER 8 @buzz2912 last edited by

            @buzz2912 I use s2s without NAT, probably many people are using it after that great video Christian McDonald did is my guess. But I only connect my pfSense to a windows server, not another Sense.
            Still I think you should really show you config and let others have a look at it. "It is not working" is not doing anything.

            pfSense on Hyper-V

            Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            1 Reply Last reply Reply Quote 0
            • B
              buzz2912 last edited by

              Here you go:
              Installation was on 2.5. Initially with NAT, than without.
              3 different site-to-site connections. All to pfsense 2.6.0
              Update to 2.6.0, no problems. I am running this in production.
              22.01 plus update, no problems
              22.05. plus update:
              First reboot, everything fine and up.
              reboot, gateways hidden, service ist not starting, not even on click.
              Reinstall package wireguard, everything up and running, reboot: dead again.
              If I manually activate the gateways and after that start the service, it runs.
              Gateway monitoring does not make a difference.
              2.7.0 same behavior as on 22.05

              Internet connection:
              When the problem occurred for the first time, I had two connections in Failover mode (cable+PPPOE). At the moment I have only one PPPOE connection.

              I did a fresh install and did a config restore. Same problems.
              I gave up and used 2.6.0 since the 22.05 release without any problem.
              I had hoped that this will be relsolved with the 2.7.0 release, but it seems not to.

              BildschirmĀ­foto 2023-01-22 um 14.54.04.png

              Config:
              Tunnel.jpg
              Interface:
              BildschirmĀ­foto 2023-01-22 um 15.04.51.png

              Gateway:
              BildschirmĀ­foto 2023-01-22 um 15.04.07.png

              Route:
              BildschirmĀ­foto 2023-01-22 um 15.07.15.png

              Bob.Dig 1 Reply Last reply Reply Quote 0
              • Bob.Dig
                Bob.Dig LAYER 8 @buzz2912 last edited by Bob.Dig

                @buzz2912 So this screenshot is not 22.05 I guess.
                And all other pfSense are 2.6.0... so this is not my setup.

                But no one had yet replied to your thread here. I would recreate all the tunnels from scratch. Or wait if someone else has the same problem and you find the cause together.
                Make sure that the default gateways are not set to automatic but to your WAN or WAN failover group is some common error with WG.

                pfSense on Hyper-V

                Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                B 2 Replies Last reply Reply Quote 0
                • B
                  buzz2912 @Bob.Dig last edited by

                  @bob-dig
                  This is my current 2.6.0 config prior the update.
                  Standard gateway is (and was) set correctly.

                  1 Reply Last reply Reply Quote 0
                  • B
                    buzz2912 @Bob.Dig last edited by buzz2912

                    Here is my upgrade to 22.05 for the screenshot and logs.
                    After the first boot 2/3 were marked online, one pending. In reality all remote networks were reachable.
                    wireguard service marked as down

                    BildschirmĀ­foto 2023-01-22 um 16.03.58.png
                    BildschirmĀ­foto 2023-01-22 um 16.10.46.png

                    service watchdog was trying every minute to start the service. No success.

                    I removed the package wireguard. After that I did a config restore.
                    After reboot, wireguard was reinstalled and started successfully. All tunnels und gateways up, service running.

                    My config seems alright. How could this work otherwise?

                    And here we go again:
                    reboot of the running 22.05 system (all tunnels up before reboot)

                    all gateways down
                    BildschirmĀ­foto 2023-01-22 um 16.10.39.png
                    BildschirmĀ­foto 2023-01-22 um 16.11.01.png

                    service down
                    BildschirmĀ­foto 2023-01-22 um 16.10.46.png

                    and here is the system log
                    BildschirmĀ­foto 2023-01-22 um 16.12.26.png

                    1 Reply Last reply Reply Quote 0
                    • B
                      buzz2912 last edited by buzz2912

                      upgrade to 23.01 beta

                      after the first boot:
                      All gateways hidden
                      wireguard service dead

                      additional message:
                      BildschirmĀ­foto 2023-01-22 um 16.29.46.png

                      reinstall wireguard package
                      all site to site connections and gateways up and running.

                      reboot 23.01 beta (with running connections). Here we go again:

                      BildschirmĀ­foto 2023-01-22 um 18.00.01.png

                      BildschirmĀ­foto 2023-01-22 um 16.10.46.png

                      same entries in system log
                      BildschirmĀ­foto 2023-01-22 um 18.06.11.png

                      L 1 Reply Last reply Reply Quote 0
                      • L
                        lcbbcl @buzz2912 last edited by

                        @buzz2912 I have the same problem after reboot i get error of unknow gateway and is disabled.
                        Without adding gateway wireguard start.

                        1 Reply Last reply Reply Quote 0
                        • B
                          buzz2912 last edited by

                          I have not found a solution.
                          I am using opnense now. It just works.

                          L 1 Reply Last reply Reply Quote 0
                          • L
                            lcbbcl @buzz2912 last edited by

                            @buzz2912
                            This is hilarious again after restart i got the GW disabled and i manually enabled the gateway, this made my tunnel work but the wireguard is not running.
                            But still on others threads they claim that is working as it should.
                            Well i will give a try also to open.
                            Screenshot_20230225_222918.png
                            Screenshot_20230225_223222.png

                            1 Reply Last reply Reply Quote 1
                            • B
                              buzz2912 last edited by

                              I do not understand what we do different.

                              L 1 Reply Last reply Reply Quote 0
                              • L
                                lcbbcl @buzz2912 last edited by

                                @buzz2912
                                We don't do nothing different , i did try everything. 1/10 reboots wg is working as it should so it is clear to me that is not how i set up. Its is something different, pppoe could be a coincidence or not. without adding a gw to the tunnel wg is coming up.

                                1 Reply Last reply Reply Quote 0
                                • V
                                  vjizzle last edited by

                                  Hi,

                                  I have the same problem with wireguard tunnels. I am on 22.05 and there this problem also exists. Every reboot it’s a 50-50% chance my wireguard tunnels will come up.

                                  I was briefly on 23.01 and there 100% of the time my wireguard tunnels would not come back after a reboot. Reinstalling the wireguard package did fix it for the next reboot after reinstalling the package but every following reboot would turn up the same problem. Gateways disabled and wireguard tunnels and service both down and not way of enabling or starting them. Definitely a bug. I have pppoe as well on WAN.

                                  I returned to 22.05 because of a bug with igmp and for now this is ok. Hopefully some fixes will come for the next release. I read somewhere that on the other *sense firewall this problem does not exist. Wondering how they solved it 🧐

                                  L 1 Reply Last reply Reply Quote 0
                                  • L
                                    lcbbcl @vjizzle last edited by

                                    @vjizzle
                                    Well i have this problem long time ago, i moved from 2.6 to 22.01 22.05 and now 23. I had always pppoe connection and it did work in the past but after last updates to wg i start to have problems. I might try to use openvpn just to see because that was working years without any problems and now i see posts about openvpn also with similar problems.
                                    I don't expect bugs free, it is just that the bug was reported and they close saying that wg work as it should be.

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post