Autobooting my pfSense Router on Mains Power Restoration

Home, Bangkok, Thailand, 2020-03-22 07-56 +0700

#infrastructure #automation

The power management situation in my home lab is in pretty good shape now with solid monitoring as well as the auto-shutdown mechanism I implemented yesterday.

There was still an issue whereby if the UPS is fully exhausted and my pfSense router loses power, it would not automatically reboot when mains power was restored. By the way my pfSense router is built on this fanless mini-PC:

Since that router is the heart of my network serving VLAN’s, DHCP and routing traffic between my internal networks and to the Internet (via the untrusted vendor-supplied ADSL router) if it is down, the network is down. In the worst-case if I’m away at the time then I need to get my local support engineer to hit the power button for me.

Fortunately - the fix was very simple. The BIOS version on my the mini PC that is my pfSense router has an option to boot when power is restored:

Now if power is fully exhausted and everything shuts off, when mains power is restored my pfSense router will boot along with my Unifi US-24-250W switch and the Unifi nanoHD AP which is powered by the switch via PoE+ - meaning my network infrastructure should all come back online smoothly.