Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - paul_

#1
Background:
I am using a UPS that sends a shutdown signal (via the killpower file) to multiple devices, including OPNsense (the firewall). However, I only want my two servers to shut down, not the firewall.

I need a persistent solution that survives reboots and updates, so OPNsense doesn't automatically shut down when the UPS triggers the shutdown event.

Steps Attempted:
Modified /usr/local/etc/nut/upsmon.conf to change the shutdown command (SHUTDOWNCMD) to a custom script that blocks shutdowns based on the presence of the killpower file. Unfortunately, this file gets overwritten on every reboot or NUT service restart.

Created custom scripts to block shutdowns when the killpower file is present, but OPNsense still shuts down immediately when the UPS triggers the shutdown event.

Used the OPNsense Web UI tunables feature to set environment variables for custom shutdown logic, but the changes don't persist or prevent the shutdown.

Modified /usr/local/etc/rc.shutdown to include logic for blocking shutdowns, but the shutdown still happens immediately when the UPS signal is triggered.

Desired Outcome:
OPNsense should NOT shut down when the UPS sends a killpower shutdown signal.

The solution should be persistent and should work across reboots and updates.

The solution should only block shutdowns for OPNsense while allowing the two servers to shut down as normal.


Thanks in advance for your help guys!
#2
Hi everyone,

I have a new APC BR900G-GR UPS, and I want to set up my OPNsense as the NUT server to manage shutdowns for my two servers and the firewall in the event of a power outage. I've tried configuring it with both the USBHID-Driver and APCSMART-Driver, but neither seems to provide any data, and the Diagnostics page remains empty.
What I can see is that nut_daemon isn´t starting(see attached picture) - is there any log I could check?

If anyone has any suggestions or insights, it would be greatly appreciated.

Thanks & best regards,
Paul
#3
Hi everyone,

I'd like to briefly explain my setup: I'm running an internal reverse proxy, and I use Unbound to resolve all DNS queries for *.mydomain.net via host overrides, forwarding them to my Nginx proxy. Now, I'd like to forward only a specific subdomain, e.g., sub1.mydomain.net, to a different IP, while all other subdomains (e.g., sub2.mydomain.net) should resolve to the default wildcard DNS IP.

Unfortunately, I haven't been able to achieve this with Unbound. Does anyone have an idea how to implement this? If switching to another DNS plugin is necessary, that's not a problem—my main requirement is that I can use upstream DNS servers via DoT or DoH.

Any suggestions would be greatly appreciated!

Thanks in advance and BR
Paul