pfSense Support Subscription

Author Topic: In the event of crash  (Read 174 times)

0 Members and 1 Guest are viewing this topic.

Offline Suddi7

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
In the event of crash
« on: December 10, 2017, 02:33:45 pm »
After I install my pfsense box and all my settings are configured, what would happen in the event it crashes or needs restart. Would the bootup process be automated so If I'm not there it would be back up and running? Id like it to be automated and such.

marjohh

  • Guest
Re: In the event of crash
« Reply #1 on: December 10, 2017, 03:33:59 pm »
If it crashes, then generally a crash results in a frozen machine, the only solution to that is a reboot. In that case if you want it automated then I suggest something like this that monitors the router by pinging it, if the ping fails a number of times then it powers off and then back on to reboot the router, you can set up the delays etc so it doesn't jump in too quick.

https://www.openxtra.co.uk/aviosys-ip-power-9255-with-single-uk-socket-ip9255uk.html

There are others that monitor the internet connection, these I don't recommend as the internet could go down for reasons that are nothing to do with the firewall.

There is a also a script I've attached that can be run, it's called by a cron event every five or ten minutes and monitors the WAN connection, this time by pinging a WAN address, if that fails after a number of attempts then firstly it will just set the WAN interface down and back up, if that doesn't restore things then it will reboot pfSense.




Offline Suddi7

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: In the event of crash
« Reply #2 on: December 13, 2017, 07:37:46 pm »
How would I install or copy over a .sh file?
Thanks

marjohh

  • Guest
Re: In the event of crash
« Reply #3 on: December 14, 2017, 01:00:25 am »
WINSCP is the easiest method.