Auto reboot after wan outage
-
Is there a way to automattically reboot if my want interface goes down i tried a script but it does not seem to work
-
@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. -
@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
-
@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/19Alternatively, 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.
-
@bobleny That is the script i tried i am sure the script itself works but i cant get it to run with cron
-
@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 ;)
-
@johnpoz Becuase i have wan card outages that require a reboot to clear
-
@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..
-
@johnpoz Correct I have contacted the creator of the device but until then i need to figure out how to create this script