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

    Constant rerooting

    Scheduled Pinned Locked Moved General pfSense Questions
    20 Posts 5 Posters 1.2k 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.
    • R
      RickyO @keyser
      last edited by

      @keyser Thank you for responding.

      I tried what you suggested. When the connection went down and stayed down I did the "Release WAN/Renew WAN" and the connection was restored.

      The next time it went down I tried restarting unbound. That had no effect, so I doubt that it's a DNS issue. I am using Cloudflare instead of the ISP's DNS and have not allowed DNS Server Override.

      This would seem to affirm what @Gertjan suggested: that's it's a problem with my ISP, not my network.

      keyserK 1 Reply Last reply Reply Quote 0
      • provelsP
        provels
        last edited by provels

        FWIW, I have a similar problem on Comcast cable. If I reboot the modem (Netgear CM600) from its web interface, pfSense never comes back online. I haven't bothered juggling services or anything, I just reboot (not reroot) the FW. Actually, I had never heard of rerooting before this thread. Like the OP, it's just me so not a big deal, more curious than complaining. Gateway Status cycles from Online/Packetloss/Unknown. Rinse/repeat. dc62eb1c-028a-4ab3-b784-493663b64db6-image.png

        Peder

        MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
        BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

        R 1 Reply Last reply Reply Quote 0
        • R
          RickyO @Gertjan
          last edited by

          @Gertjan said in Constant rerooting:

          Plenty reasons to stop using that ISP ...

          I agree, but really have no options. One provider has a monopoly in the neighbourhood. They own all the coax cable hung from the utility poles and into the houses -- a legacy of the old cable TV days.

          My ISP leases a line and provides my connection along with a digital "landline" and our mobile phone service. When it is up I am getting the advertised 500 Mbps. When it goes down I sometimes also lose the connection for my digital phone box and have to restart it.

          This has been going on for a long time. We used to experience "buffering" while watching streaming TV and I just thought it was a connection speed issue. When our granddaughter started using our network I thought it wise to build a better router and have a separate network for WiFi, home automation and entertainment.

          I installed Endian Firewall on an older pc and started experiencing the frequent lost connections. I thought it might be a hardware issue and installed Endian on a higher spec pc (3.40GHz processor, 8 GB RAM, 240GB SSD). The problems continued. I installed pfSense on the newer pc thinking it was software problem. The frequent dropped connections continue. At least I can just "reroot" or “Release WAN” and then “Rewew WAN” as @keyser suggested. Getting the connection back with Endian necessitated a complete reboot.

          My ISP is apologetic but really unable to do much about the leased line. I am preparing a formal complaint about the coax line owner.

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

            Seems like a DHCP issue.

            Anything in the dhcp logs?

            Does it reconnect if you manually release/renew from Status > Interfaces?

            R 1 Reply Last reply Reply Quote 0
            • R
              RickyO @provels
              last edited by

              @provels If you are running your firewall device "headless", there is only a reboot option in the web GUI Diagnostics/Reboot. That does indeed restart everything.

              I have a keyboard and monitor attached to the pc that runs pfSense. The monitor displays a simple FreeBSD-style page with numbered options. One of the options is "Reboot system" followed a further choice of a complete reboot or a "reroot" which just restarts services and not the entire OS. The reroot is much faster -- a factor when you're forced to do it a few times a day...

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

                You can reroot from the gui, you just have to select it:

                Screenshot from 2024-10-14 16-15-45.png

                1 Reply Last reply Reply Quote 2
                • provelsP
                  provels @RickyO
                  last edited by

                  @RickyO @stephenw10 Thanks for the tips!

                  Peder

                  MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
                  BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

                  1 Reply Last reply Reply Quote 0
                  • keyserK
                    keyser Rebel Alliance @RickyO
                    last edited by keyser

                    @RickyO said in Constant rerooting:

                    @keyser Thank you for responding.

                    I tried what you suggested. When the connection went down and stayed down I did the "Release WAN/Renew WAN" and the connection was restored.

                    The next time it went down I tried restarting unbound. That had no effect, so I doubt that it's a DNS issue. I am using Cloudflare instead of the ISP's DNS and have not allowed DNS Server Override.

                    This would seem to affirm what @Gertjan suggested: that's it's a problem with my ISP, not my network.

                    Excellent tests - now you know.

                    I’m 99.9% sure your ISP is running “DHCP Authentication” which means your ISP requires a full DHCP Discover/acknowledge process to actually “open” the line for a client. The client can only be the MAC address that completed the DHCP discover procedure.
                    It’s not at all uncommon to use that “lockdown” mechanism on the ISP side.

                    What is uncommon is the fact that your authentication is not sticky with the ISP after a line outage. So the next thing I’m pretty sure of is that the line outtage is the ISP equipment or line that has a problem, because your authentication should stick unless the ISPs concentrator sensed a linkdown when you experience the line is down. (There is a difference between linkdown, and just no service). With a linkdown all authentications are invalidated a has to be done from scratch again. I have the exact same issue on a couple of ISP’s.

                    The problem is this: All standard equipment just follows DHCP procedure, and as long as there has been no sensed linkdown (possible change of network), the client will never do a new full DHCP discover/acknowledge procedure while the current DHCP lease is valid - it will only try a DHCP renew (Which is not enough for DHCP authentication).

                    THe ISPs router however is specifically configured to either never do renews (always full discover), or have a gateway monitor that triggers a full discover cycle. But most likely it also senses the “linkdown” and just does a full DHCP discover. But a bridgemode router might not relay the linkdown to the device behind it, and then you have the problem

                    @stephenw10 Can you think of some custom DHCP settings in pfSense that will have pfSense do a full dhcp discover cycle on a gateway action trigger?

                    But really: You should contact the ISP and have the look into the outages - as they are likely also seen/present on ports in their devices.

                    Love the no fuss of using the official appliances :-)

                    1 Reply Last reply Reply Quote 0
                    • R
                      RickyO @stephenw10
                      last edited by

                      @stephenw10 Yes. When I do "Release WAN/Renew WAN" from Status/Interfaces the connection is restored.

                      I have tried to find things in the logs without success (or knowing where to look...)

                      For example, when I go to Status/System Logs/DHCP and filter for "WARN" in the message I get mostly stuff about multi-threading and queue size.

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

                        Hmm, so since the link never actually goes down the dhclient is never re-fired.

                        You could just set a much shorter DHCP lease. If it fails to renew it should eventually try discover. And you can set the number of times it tries that I believe.

                        keyserK R 2 Replies Last reply Reply Quote 0
                        • keyserK
                          keyser Rebel Alliance @stephenw10
                          last edited by

                          @stephenw10 Yeah, that could be a “workaround”.

                          But the timers under DHCP advanced configuration is requested leasetimes. Does that mean pfSense will use those settings regardless of the DHCP servers returned leasetime (if it does not grant/honour the clients request)?

                          Setting the leasetime to fx. 10 minuttes should make sure that pfSense is never more than < 10min from coming back up automatically once the line comes back.

                          Love the no fuss of using the official appliances :-)

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

                            The requested time is what is sent to the server in the request. But it can ignore that and send you a much longer lease. Any many will do that.

                            R 1 Reply Last reply Reply Quote 0
                            • R
                              RickyO @stephenw10
                              last edited by

                              @stephenw10 I will double check the next time the connection goes down, but I'm fairly certain that when I went to Status/Interfaces WAN Interface to do "Release WAN", Status and DHCP both said "up".

                              If I go to Interfaces/WAN DHCP Client Configuration these are my current settings:
                              Screenshot from 2024-10-14 14-23-41.png

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

                                You can put dhcp-lease-time XXX in the Send Options field to request that from the server.

                                You can put supersede dhcp-lease-time XXX in the Option Modifiers field to ignore whatever lease time the server sends you and use that instead. Obviously that should always be less than the lease time the server sends.

                                1 Reply Last reply Reply Quote 0
                                • R
                                  RickyO @Gertjan
                                  last edited by

                                  @Gertjan Thank you for your advice. My connection seems stable for now after some work by the leased line owner.

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    RickyO @stephenw10
                                    last edited by

                                    @stephenw10 Thank you for your help with this.

                                    1 Reply Last reply Reply Quote 1
                                    • R
                                      RickyO @keyser
                                      last edited by

                                      @keyser Thank you for your help with this.

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