Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (Debian-5.0)
Apropos / Subsearch:
optional field

UPSD.CONF(5)                Network UPS Tools (NUT)               UPSD.CONF(5)

       upsd.conf - Configuration for Network UPS Tools upsd

       upsd  uses this file to control access to the server and set some other
       miscellaneous configuration values.   This  file  contains  details  on
       access  controls,  so  keep  it secure.  Ideally, only the upsd process
       should be able to read it.

       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 "class C":

                   ACL mynet (IPv4)

              Or, you can use new-style "CIDR format" (which is mandatory when
              IPv6 addresses are used):

                   ACL mynet (IPv4)

                   ACL mynet 2001:0db8:1234::/48 (IPv6)

              To just list one host, it would look like one of these:

                   ACL mybox (IPv4)

                   ACL mybox (IPv4)

                   ACL mybox 2001:0db8:1234:08d3::0370:7344/128 (IPv6)

              ACLs  are  used whenever you need to refer to a network or host,
              such  as  in  ACCEPT/REJECT   definitions   (below)   and   with
              "allowfrom" in upsd.users(5).

       ACCEPT aclname [aclname...]

              ACCEPT  let  clients on the hosts or networks defined by aclname
              connect to upsd.  You may specify  multiple  ACL  names  on  the
              ACCEPT line, and you may have multiple ACCEPT lines.

                   ACCEPT localhost mybox

                   ACCEPT otherbox

       REJECT aclname [aclname...]

              Like  ACCEPT, but it denies access instead.  upsd will close the
              connection without reading any data from the network.

              Note: you should still use firewall rules if  your  system  pro-
              vides them.  That provides another level of coverage.

                   REJECT badbox

                   REJECT all

       Here is an example configuration to show some of what is possible.

       "bigserver"  has  a UPS attached to a serial port.  It runs the driver,
       upsd, and upsmon in master mode.  This definition  is  also  referenced
       with an "allowfrom" in upsd.users(8).

       "workstation"  draws from the same UPS as "bigserver", but has to moni-
       tor it over the network.  It runs upsmon in slave mode.    It  is  also
       referenced with an "allowfrom" in upsd.users(8).

       "webserver" doesn't get power from this UPS at all, but it runs the CGI
       programs so it can make nice status displays.

       An abuser's host is explicitly denied.

       Everything else is rejected.

                   ACL bigserver
                   ACL workstation
                   ACL webserver
                   ACL abuser
                   ACL all

                   ACCEPT bigserver workstation webserver
                   REJECT abuser
                   REJECT all

       ACCEPT and REJECT directives are checked in the  order  they  occur  in
       this  file.   The first ACL which matches a client causes the action to
       be taken.  If you need to ACCEPT one host and REJECT the rest of a net-
       work, first list the host, then list the network on a line below it.

            ACCEPT goodhost

            REJECT badnet

       Any IP address which does not match one of your directives will default
       to REJECT.  This is intended to keep your system safe if you forget  to
       put "REJECT all" at the bottom.

       If  you  really want the whole world to have access to upsd, you can do
       "ACCEPT all", but that is not recommended.

       MAXAGE seconds

              upsd usually allows a driver to stop responding  for  up  to  15
              seconds before declaring the data "stale".  If your driver takes
              a very long time to process  updates  but  is  otherwise  opera-
              tional, you can use MAXAGE to make upsd wait longer.

              Most users should leave this at the default value.

       STATEPATH path

              Tell  upsd  to  look for the driver state sockets in path rather
              than the default that was compiled into the program.

       LISTEN interface port

              Bind a listening port to the interface specified by its Internet
              address.   This may be useful on hosts with multiple interfaces.
              You should not rely exclusively on this for security, as it  can
              be subverted on many systems.

              Listen  on  TCP port port instead of the default value which was
              compiled into the code.  This overrides any value you  may  have
              set  with  'configure --with-port'.  If you don't change it with
              configure or this value, upsd will listen on port 3493 for  this

              Multiple  LISTEN  addresses may be specified.  The default is to
              bind to if no LISTEN addresses are specified.

                   LISTEN ::1
                   LISTEN 2001:0db8:1234:08d3:1319:8a2e:0370:7344

       This parameter will only be read at startup.  You'll  need  to  restart
       (rather than reload) upsd to apply any changes made here.

       upsd(8), nutupsdrv(8), upsd.users(5)

   Internet resources:
       The NUT (Network UPS Tools) home page: http://www.networkupstools.org/

                                Mon Jan 22 2007                   UPSD.CONF(5)