ACL name netblock
Define an Access Control List (ACL) called name that contains the network netblock. The netblock can be either the old style, such as this for a traditional ''
ACL mynet 192.168.50.0/255.255.255.0
Or, you can use new-style
ACL mynet 192.168.50.0/24
To just list one host, it would look like one of these:
ACL mybox 192.168.50.1/255.255.255.255
ACL mybox 192.168.50.1/32
ACLs are used whenever you need to refer to a network or host, such as in ACCESS definitions (below) and with upsd.users__(5).
ACCESS action level aclname password''
Define the access to commands at level level by clients in the network defined by ACL aclname, optionally requiring a password password.
The action can be one of three values:
grant - allow the clients to perform commands at this level.
deny - deny the clients access to commands at this level.
drop - like deny, but don't even respond to their query.
The level relates to the complexity of the command. More important functions like editing variables inside the UPS require more privileges than merely checking the status. Each level includes the powers of the one before it. Here are the valid levels:
base - Allows TCP connections and very simple queries. Valid commands are VER and HELP.
login - upsmon__(8) process know how many slaves are connected.
master - upsmon(8) process. MASTER is allowed so upsmon can check its privileges, and FSD allows it to set the
manager - upsd.users__(5).
all - match any level. This really only should be used for
The aclname is just one of your ACL definitions, as explained above.
Here is an example configuration to show some of what is possible.
Access controls should go from most specific to least specific. The first match with a sufficient access level is the one used when applying permissions.
Along the same lines, everyone is a member of
ACCESS grant login myhost pass1
That looks fine at a glance, but will cause problems whenever someone on
The solution is to put the most powerful lines last, so they don't match too early.
ACCESS grant master myhost pass2
upsd usually allows the data from a driver to go up to 15 seconds without an update before declaring it
You should only use this if your model program has difficulties keeping the data fresh within the normal 15 second interval. Watch the syslog for notifications from upsd about staleness.
upsd(8), nutupsdrv(8), upsd.users(5)
The NUT (Network UPS Tools) home page: http://www.exploits.org/nut/