<div dir="ltr"><div><div><div><div><div>Hi thanks for helping.<br><br></div>I don't think nut is built with TCP wrappers support, although the package is listed as depending on libwrap...<br><br></div>I ran this command: ldd /sbin/upsd | grep libwrap.so<br><br></div>and it has returned no output.<br><br></div>Does this mean I have to compile from source or is there a way to add the tcp wrapper support?<br><br></div>Thanks again.<br><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 24 November 2016 at 22:40, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Thu, 24 Nov 2016, Jonah Naylor wrote:<br>
<br>
</span><span class="gmail-"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I installed Nut via apt-get, not from source (which I'd rather stick with if possible just for ease of security updates etc) - so I'm not too sure if TCP wrappers are there or available...<br>
<br>
This could be the problem, am I still able to add the wrappers in with prebuilt packages?<br>
</blockquote>
<br></span>
Could you apt-get the source and look for the .spec file if your distribution has one. The openSUSE distribution nut.spec file contains<br>
<br>
%configure \<br>
--disable-static \<br>
--with-pic \<br>
--sysconfdir=%{CONFPATH} \<br>
--datadir=%{_datadir}/nut \<br>
--with-all \<br>
--without-doc \<br>
--with-ssl \<br>
--with-openssl \<br>
--without-nss \<br>
--with-wrap \ ...<br>
<br>
which shows that TCP Wrappers are included.<br>
<br>
I have the following declaration in the master's hosts.allow. (I have no hosts.deny file)<br>
<br>
upsd : localhost, LOCAL, 127.0.0.1, [::1] : ALLOW<br>
upsd : ALL : spawn (/bin/mail -r hosts.allow@localhost\<br>
-s '%s@%h (mybox) refused access to %d from %c'\<br>
roger@localhost) & : DENY<br>
<br>
# And now the denials which previously appeared in /etc/hosts.deny<br>
ALL : ALL : DENY<br>
<br>
You may need to add the IP address of your slave.<div class="gmail-HOEnZb"><div class="gmail-h5"><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>
</div></div></blockquote></div><br></div></div></div></div></div></div></div></div>