<div dir="ltr"><div><div><div><div>Hi thanks Roger,<br><br></div>I've amended my hosts.allow file to your suggested one - thanks for that.<br><br></div>I'm still getting "Connection refused on the client cgi screen as well as in the shell it gives me UPS upsname@ipaddresshere is unavailable...<br><br></div>Any ideas what I can try next to debug why it's not working. Also should the "allowfrom = clientIPaddresshere" line be in my monuser entry in upsd.users on the master, or should I take that out?<br><br></div>Thanks once again for the help.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 November 2016 at 12:37, Roger Price <span dir="ltr"><<a href="mailto:roger@rogerprice.org" target="_blank">roger@rogerprice.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 25 Nov 2016, Jonah Naylor wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
upsd : ipaddressofclientgoeshere<br>
</blockquote>
<br>
If it were me I would write<br>
<br>
 upsd : ipaddressofclient :\<br>
        spawn (/bin/mail -r hosts.allow@localhost\<br>
              -s '%s@%h accepted access to %d from %c'\<br>
                      sysadmin@somedomain) &          : ALLOW<br>
<br>
 upsd : ALL :\<br>
        spawn (/bin/mail -r hosts.allow@localhost\<br>
              -s '%s@%h refused access to %d from %c'\<br>
                      sysadmin@somedomain) &           : DENY<br>
<br>
so I get a trace of what happens, at least during testing.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
ups : <a href="http://monuser@127.0.0.1/32" rel="noreferrer" target="_blank">monuser@127.0.0.1/32</a> monuser@masterstaticIP monuser@slavestaticIP<br>
</blockquote>
<br>
I'm not sure what you are trying to do here.  In any case, the daemon_list should specify upsd, not ups. See man 5 hosts_access.<br>
<br>
Rogr<br>
<br>
______________________________<wbr>_________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@lists.alioth.debian.org" target="_blank">Nut-upsuser@lists.alioth.debia<wbr>n.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">http://lists.alioth.debian.org<wbr>/cgi-bin/mailman/listinfo/nut-<wbr>upsuser</a><br>
</blockquote></div><br></div>