[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' *
ups.conf:[ups]
ups.conf:driver=newhidups
ups.conf:port=auto
upsd.conf:ACL all 0.0.0.0/0
upsd.conf:ACL localhost 127.0.0.1/32
upsd.conf:ACL remote 192.168.110.0/24
upsd.conf:ACCEPT remote
upsd.conf:ACCEPT localhost
upsd.conf:REJECT all
upsd.users:[monuser]
upsd.users:password = mypass
upsd.users:allowfrom = localhost
upsd.users:upsmon master
upsd.users:
upsd.users:[ups]
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 192.168.110.253
Error: Connection failure: Connection refused

It is listening on all channels.
mgmt-dev:/etc/nut# netstat -an |grep 3493
tcp        0      0 0.0.0.0:3493            0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:53969         127.0.0.1:3493          ESTABLISHED
tcp        0      0 127.0.0.1:3493          127.0.0.1:53969         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