<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi thanks for all the help with this.<br><br></div>I may have now resolved this and got things working...<br><br></div>All I've ended up doing is making the slave the master and the master the slave! They now connect!<br><br></div>What is strange though is that one machine is Ubuntu and one is Debian - with Debian as the Master things work no problem, without needing anything in hosts.allow at all. And Ubuntu is quite happy as the slave and shows the connection etc.<br><br></div>The other way round as you know from my previous posts and Debian as the slave just won't connect to the Ubuntu box...<br><br></div>So this may just be an Ubuntu issue with 14.04LTS.<br><br></div>But I'm happy as it doesn't matter to me which is master or slave, so this will be fine without us having to get to the bottom of the problem.<br><br></div>The only other thing I wanted to check with everyone is just that all the slaves will powerdown when the battery is low by default. Do I need to set up any settings, or if there are no lines in a config file will this just happen and the defaults are fr this to happen anyway?<br><br></div>Thanks once again for all the help and suggestions.<br><br></div>Much appreciated.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 November 2016 at 16:32, Tim Dawson <span dir="ltr"><<a href="mailto:tadawson@tpcsvc.com" target="_blank">tadawson@tpcsvc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Try ALL:ALL in /etc/hosts.allow temporarily. If that still doesn't work, it's likely something else. If it does, only then screw with creating narrow rules . . .<br>
<br>
- Tim<br><br><div class="gmail_quote"><span class="">On November 25, 2016 6:37:02 AM CST, Roger Price <<a href="mailto:roger@rogerprice.org" target="_blank">roger@rogerprice.org</a>> wrote:</span><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<pre class="m_-7973857760071520833k9mail"><span class="">On Fri, 25 Nov 2016, Jonah Naylor wrote:<br><br></span><blockquote class="gmail_quote" style="margin:0pt 0pt 1ex 0.8ex;border-left:1px solid #729fcf;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:0pt 0pt 1ex 0.8ex;border-left:1px solid #729fcf;padding-left:1ex"> ups : <a href="http://monuser@127.0.0.1/32" 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 <br>daemon_list should specify upsd, not ups. See man 5 hosts_access.<br><br>Rogr<span class=""><br><br><hr><br>Nut-upsuser mailing list<br><a href="mailto:Nut-upsuser@lists.alioth.debian.org" target="_blank">Nut-upsuser@lists.alioth.<wbr>debian.org</a><br><a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser" target="_blank">http://lists.alioth.debian.<wbr>org/cgi-bin/mailman/listinfo/<wbr>nut-upsuser</a><br></span></pre></blockquote></div><span class="HOEnZb"><font color="#888888"><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</font></span></div><br>______________________________<wbr>_________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@lists.alioth.debian.org">Nut-upsuser@lists.alioth.<wbr>debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">http://lists.alioth.debian.<wbr>org/cgi-bin/mailman/listinfo/<wbr>nut-upsuser</a><br></blockquote></div><br></div>