<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>When on the same LAN it just worked without anything in the hosts.allow file. It's difficult for me to now put the slave back on the same lan as the master due to the way the production servers are being used... Causing downtime etc...<br><br></div><div>I do have another spare server though which I could put on the same lan with the master to see if that will work? I'll report back my findings when I get chance to try this...<br></div><div><br></div>I can ssh in both ways from the master to the slave and the slave to the master.<br><br></div>I wanted NUT to shutdown the slave when the wall power fails as you say. Currently the slave is at risk as it shares the same ups in the same cabinet, but is on a different network.<br><br></div>Also I'll remove that allowfrom option for now if it maybe isn't needed.<br><br></div>Thanks again.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 November 2016 at 14:41, 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">
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>
</blockquote>
<br>
You reported that access works correctly from elsewhere on the master subnetwork.  Does access from the master subnetwork produce the "accepts" e-mail message generated by the hosts.allow specification ?<br>
<br>
You need to test that this is working correctly.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Any ideas what I can try next to debug why it's not working.<br>
</blockquote>
<br>
Being able to ping from A to B does not guarantee that TCP gets through. Can you ssh from slave to master?<br>
<br>
Are you intending to shut down the slave if wall power fails for the master?, or is it just for administrative access?<br>
<br>
For general debugging, have you tried sniffing the two subnetworks with tcpdump to see if the slave traffic reaches the master or is blocked elsewhere?<br>
<br>
If the slave traffic reaches the master, then running upsd with -DDD options might show something.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also should the "allowfrom = clientIPaddresshere" line be in my monuser entry in upsd.users on the master, or should I take that out?<br>
</blockquote>
<br>
I have no experience of this option, perhaps others could help you there.<br>
<br>
Roger<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>