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

Auto reboot after wan outage

Routing and Multi WAN
3
9
994
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.
  • S
    Studmuffin1134
    last edited by Jun 17, 2022, 1:40 AM

    Is there a way to automattically reboot if my want interface goes down i tried a script but it does not seem to work

    B 1 Reply Last reply Jun 17, 2022, 2:10 AM Reply Quote 0
    • B
      bobleny @Studmuffin1134
      last edited by Jun 17, 2022, 2:10 AM

      @studmuffin1134
      Do you have an actual netgate appliance, or is it a computer running the pfSense software?
      Most motherboards offer a feature that will turn the computer back on when the power is restored. Usually this is a BIOS settings, but sometimes a hardware jumper.

      S 1 Reply Last reply Jun 17, 2022, 2:25 AM Reply Quote 0
      • S
        Studmuffin1134 @bobleny
        last edited by Jun 17, 2022, 2:25 AM

        @bobleny it is a coustom but it is not for powerloss every now and then my internet goes down due to my isp or my wan modem sometimes likes to crash is there a way to reboot the machine if the wan goes offline

        B 1 Reply Last reply Jun 17, 2022, 3:38 AM Reply Quote 0
        • B
          bobleny @Studmuffin1134
          last edited by Jun 17, 2022, 3:38 AM

          @studmuffin1134
          Oh, sorry, my inability to read has gotten the better of me.
          I don't know the answer unfortunately. Hopefully someone else dose.
          I doubt they intentionally added such a feature though.

          I know you had mentioned a script, but I suspect that will be your only option.
          I would definitely checkout this thread, if you haven't already:
          https://forum.netgate.com/topic/64563/pfsense-auto-reboot-script-when-google-is-unreachable/19

          Alternatively, you could probably use a command line tool called "dpinger". Pfsense uses it to monitor the gateways. As I understand the command, it will periodically check a given gateway and execute a script you provide if the gateway goes down.

          S 1 Reply Last reply Jun 17, 2022, 4:21 AM Reply Quote 0
          • S
            Studmuffin1134 @bobleny
            last edited by Jun 17, 2022, 4:21 AM

            @bobleny That is the script i tried i am sure the script itself works but i cant get it to run with cron

            J 1 Reply Last reply Jun 17, 2022, 5:53 AM Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator @Studmuffin1134
              last edited by Jun 17, 2022, 5:53 AM

              @studmuffin1134 there should be no reason to "reboot" pfsense because the connection goes down.. When the connection comes back up it will reconnect..

              The only time you should have to reboot pfsense is when you upgrade the version ;)

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

              S 1 Reply Last reply Jun 17, 2022, 6:04 AM Reply Quote 1
              • S
                Studmuffin1134 @johnpoz
                last edited by Jun 17, 2022, 6:04 AM

                @johnpoz Becuase i have wan card outages that require a reboot to clear

                J 1 Reply Last reply Jun 17, 2022, 6:10 AM Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator @Studmuffin1134
                  last edited by johnpoz Jun 17, 2022, 6:11 AM Jun 17, 2022, 6:10 AM

                  @studmuffin1134 so your say the wan card in pfsense crashes? or hangs or whatever and that is why you need to reboot?

                  Correct solution is not to use that wan card, get a new one, etc.

                  Rebooting out of blue to get something working again should not be normal operation.. You shold look to fix why that is happening vs just setting up a reboot..

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                  S 1 Reply Last reply Jun 17, 2022, 6:23 AM Reply Quote 0
                  • S
                    Studmuffin1134 @johnpoz
                    last edited by Jun 17, 2022, 6:23 AM

                    @johnpoz Correct I have contacted the creator of the device but until then i need to figure out how to create this script

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