[Nut-upsuser] upsc does not dig connection from other hosts

Han Boetes han at mijncomputer.nl
Mon Oct 13 15:44:46 UTC 2008

I got a bunch of configfiles that look like this:
mgmt-dev:/etc/nut# grep -v 'niets' *
upsd.conf:ACL all
upsd.conf:ACL localhost
upsd.conf:ACL remote
upsd.conf:ACCEPT remote
upsd.conf:ACCEPT localhost
upsd.conf:REJECT all
upsd.users:password = mypass
upsd.users:allowfrom = localhost
upsd.users:upsmon master
upsd.users:password = ups
upsd.users:allowfrom = remote
upsd.users:upsmon master
upsmon.conf:MONITOR ups at localhost 1 monuser mypass master
upsmon.conf:MINSUPPLIES 1
upsmon.conf:SHUTDOWNCMD "/sbin/shutdown -h +0"
upsmon.conf:POWERDOWNFLAG /etc/killpower

Now I do the following, from the machine running upsd:

mgmt-dev:/etc/nut# upsc ups at localhost ups.test.result
Done and passed
mgmt-dev:/etc/nut# upsc ups at
Error: Connection failure: Connection refused

It is listening on all channels.
mgmt-dev:/etc/nut# netstat -an |grep 3493
tcp        0      0  *               LISTEN     
tcp        0      0          ESTABLISHED
tcp        0      0         ESTABLISHED

And no firewall is active:

mgmt-dev:/etc/nut# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

What am I missing?

# Han
   __o     We Americans, we're a simple people... but piss us off, and
 _ \<_     we'll bomb your cities. -- Robin Williams, Good Morning
(_)/(_)    Vietnam

More information about the Nut-upsuser mailing list