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

    Bug gateways power loss

    Scheduled Pinned Locked Moved General pfSense Questions
    13 Posts 3 Posters 1.7k Views
    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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      So when it recovers after a power loss what state do you see? The WAN gateway shows as down? The WAN fails to pull an IP address?
      It sounds similar to what some others have seen if pfSense and a WAN connected modem reboot at the same time. It's possible the modem can bring the WAN link down at the point where pfSense initiates the dhclient causing it to fail.

      Steve

      bingo600B 1 Reply Last reply Reply Quote 1
      • bingo600B
        bingo600 @stephenw10
        last edited by

        @stephenw10 said in Bug gateways power loss:

        It's possible the modem can bring the WAN link down at the point where pfSense initiates the dhclient causing it to fail.

        I'we seen excactly that in my Summerhouse .... :
        If modem/router is slower than the pfSense to become ready (ethernet link wise), pfSense WAN DHCP Client "gives up"

        Two cures (requires onsite presence):
        1 - Fast - Pull out Wan cable, and insert again.
        2 - Slow - Reboot pfSense again.
        Both requires that the modem has been booted, and is "ready"

        Workaround:
        I actually ended up giving my WAN a Static IP (RFC1918, on ISP router inside lan) , instead of DHCP.
        That made the WAN link become active, when the modem/router finally came up.

        What I don't understand is why this issue isn't resolved ....

        /Bingo

        If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

        pfSense+ 23.05.1 (ZFS)

        QOTOM-Q355G4 Quad Lan.
        CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
        LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          A better workaround is to add a boot delay to pfSense so that the modem has always booted sufficiently to bring the link up before dhclient is run. But, yes, it shouldn't happen and should be fixed.

          Steve

          bingo600B 1 Reply Last reply Reply Quote 0
          • bingo600B
            bingo600 @stephenw10
            last edited by

            @stephenw10 said in Bug gateways power loss:

            A better workaround is to add a boot delay to pfSense so that the modem has always booted sufficiently to bring the link up before dhclient is run.

            How would you do that (Boot delay) ???
            Is there a pfSense setting ? , or do you mean something like an APU and "Sequenced booting ?"

            /Bingo

            If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

            pfSense+ 23.05.1 (ZFS)

            QOTOM-Q355G4 Quad Lan.
            CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
            LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Set: autoboot_delay="30" in loader.conf.

              You probably don't need such a large delay there. 10 worked for others seeing this.

              Steve

              bingo600B 1 Reply Last reply Reply Quote 1
              • bingo600B
                bingo600 @stephenw10
                last edited by bingo600

                @stephenw10
                I would have no issue setting it to 120sec, if it solves it ...

                Btw:
                loader.conf or that "local" that survives upgrades ?

                Or are you hinting it will be fixed before next upgrade 😁 šŸ˜€ 😁 šŸ˜€

                /Bingo

                If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                pfSense+ 23.05.1 (ZFS)

                QOTOM-Q355G4 Quad Lan.
                CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  I hope it will be fixed but I can't be sure.

                  It's a value we set in loader.conf already which is why I suggested it there. Values in loader.conf.local should override that but....

                  Let me test...

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by stephenw10

                    @stephenw10 said in Bug gateways power loss:

                    autoboot_delay="30"

                    Yup, works in loader.conf.local. Use that.

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

                    1 Reply Last reply Reply Quote 1
                    • S
                      s_serra
                      last edited by

                      Thanks for the answers,

                      I have a modem before pfsense. I'll test it when the power goes down and I'll leave a reply on this ticket. Thanks.

                      Best regards
                      Tiago Serra

                      1 Reply Last reply Reply Quote 0
                      • S
                        s_serra
                        last edited by

                        Hello, It doesn't work with 30, I switched to 60.

                        7273f6f0-ec72-42fc-8a8f-624b806cba91-image.png

                        Best regards
                        Tiago Serra

                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          Hmm, that's a big delay. I guess your upstream device boots slowly.

                          1 Reply Last reply Reply Quote 0
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            There's a patch on the ticket now available if anyone can test it. If we get some positive feedback there we can commit it for 23.01.
                            https://redmine.pfsense.org/issues/13671#note-4

                            Steve

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