>How is the UPS connected, by USB?
yes, by USB, but this is not relevant. in the scope of the NAS, the ups works perfectly.
>And what exactly do you try to achieve?
>Network master means, that the NAS sends a "on battery" (or "shutdown"?) command to this 5 clients.
ok, some more context.
I don't care about "sending messages" from master to clients. I only care that the server will reply ONLY to requests coming from clients, because the GUI will generate a upsd.conf file like:
ACL client_1 (ip)
ACCEPT client_1
ACL client_2 (another ip)
ACCEPT client_2
etc.
REJECT all
if I execute, say,
from another properly configured machine, I get a "deny", unless the client machine is in the list:
Code: Select all
pi@raspberry:~ $ upsc qnapups@myqnap.local
Init SSL without certificate database
Error while connecting to myqnap.local, disconnect
Error: Server disconnected
Instead I want the qnap to reply to ALL requests from the local subnet, so basically I want 192.168.1.0/24 as a valid client (which IS ALLOWED in nut config, but artificially disallowed by qnap GUI).
So, as I said, I tried to change the config and add an "accept all", but it doesn't work, as periodically the config file gets rewritten (and I don't know why/where/who).
More precisely my question is: do you know where is the TEMPLATE config file that the GUI uses?