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

    Web down after power failure

    Scheduled Pinned Locked Moved General pfSense Questions
    17 Posts 3 Posters 1.4k 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

      Does it have a default route in that state? Check Diag > Routes.

      S 1 Reply Last reply Reply Quote 0
      • S
        swisscheese @stephenw10
        last edited by

        @stephenw10 When it's up normally it shows:
        default normal ip UGS 7 1500 mvneta0.4090
        But in the down state the default line is missing.

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

          Hmm, do you see anything in the logs where it fails to add a default route?

          Try setting WAN_DHCP as the default IPv4 gateway in Sys > Routing rather than automatic.

          S 1 Reply Last reply Reply Quote 0
          • S
            swisscheese @stephenw10
            last edited by

            @stephenw10 said in Web down after power failure:
            WAN_DHCP as the default did not help. Don't know how to read the various logs.

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

              Well when the DHCP WAN comes up I expect the gateway to be reset as the default route. If that fails there would usually be an error in the System and/or gateways logs showing that failed and why.

              Check the dhcp log for the dhclient entries. You should see something like:

              Sep 17 22:11:51 	dhclient 	8480 	Starting add_new_address()
              Sep 17 22:11:51 	dhclient 	8722 	ifconfig ix3 inet 172.21.16.232 netmask 255.255.255.0 broadcast 172.21.16.255
              Sep 17 22:11:51 	dhclient 	9400 	New IP Address (ix3): 172.21.16.232
              Sep 17 22:11:51 	dhclient 	10067 	New Subnet Mask (ix3): 255.255.255.0
              Sep 17 22:11:51 	dhclient 	10981 	New Broadcast Address (ix3): 172.21.16.255
              Sep 17 22:11:51 	dhclient 	11527 	New Routers (ix3): 172.21.16.1
              Sep 17 22:11:51 	dhclient 	12199 	Adding new routes to interface: ix3
              Sep 17 22:11:51 	dhclient 	13332 	/sbin/route add -host 172.21.16.1 -iface ix3
              Sep 17 22:11:51 	dhclient 	14251 	/sbin/route add default 172.21.16.1 
              

              If that route add default command fails it should show an error there and/or in the system log at that time.

              S 1 Reply Last reply Reply Quote 0
              • NollipfSenseN
                NollipfSense @swisscheese
                last edited by

                @swisscheese said in Web down after power failure:

                solution given is to get a UPS.

                If you experience frequent power failure, investing in one is a must...

                pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                1 Reply Last reply Reply Quote 0
                • S
                  swisscheese @stephenw10
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    @swisscheese said in Web down after power failure:

                    Sep 18 07:32:28 dhclient 80717 Adding new routes to interface: mvneta0.4090

                    Hmm, not trying to add a default route it looks like. I wonder if the dhcp server is sending it a default route. You might try capturing that dhcp sequence in a pcap and looking at what's actually being sent.

                    However I think I would try a simpler test. What happens if you manually boot the modem and then boot pfSense after, say, 30s?

                    If that works it's an easy workaround to add a longer boot delay to pfSense so that the modem has finished booting before pfSense requests a dhcp lease.

                    Steve

                    S 2 Replies Last reply Reply Quote 0
                    • S
                      swisscheese @stephenw10
                      last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • S
                        swisscheese @stephenw10
                        last edited by

                        @stephenw10 Good idea on the boot delay. I used 60 sec (did not try 30) and it seemed to work. Thank you!

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