<div dir="ltr"><div><div><div><div>Hi thanks Roger. Well I'm just using Ubuntu Server 16.04 LTS<br><br></div>I only ran that command as a few guides say that's how to establish if a daemon is compiled with tcp wrappers:<br><br><a href="https://www.cyberciti.biz/faq/tcp-wrappers-hosts-allow-deny-tutorial/">https://www.cyberciti.biz/faq/tcp-wrappers-hosts-allow-deny-tutorial/</a><br><br></div>I haven't really used TCP wrappers before so I'm not even sure if my hosts.allow entries are correct:<br><br>upsd : ipaddressofclientgoeshere<br>ups : <a href="http://monuser@127.0.0.1/32">monuser@127.0.0.1/32</a> monuser@masterstaticIP monuser@slavestaticIP<br><br></div>If yourself or anyone could please advise if this should work or if I need something different in my hosts.allow file<br><br></div>Thank you very much once again.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 November 2016 at 12:00, 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"><span class="">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 don't think nut is built with TCP wrappers support, although the package is listed as depending on libwrap...<br>
</blockquote>
<br></span>
Why would you have such a dependency if nut didn't use TCP Wrappers?<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I ran this command: ldd /sbin/upsd | grep libwrap.so and it has returned no output.<br>
</blockquote>
<br></span>
If I run that command I get<br>
<br>
maria:~ # ldd /usr/sbin/upsd<br>
linux-vdso.so.1 (0x00007ffff8fa8000)<br>
libssl.so.1.0.0 => /lib64/libssl.so.1.0.0 (0x00007f05a4ea6000)<br>
libcrypto.so.1.0.0 => /lib64/libcrypto.so.1.0.0 (0x00007f05a4ab9000)<br>
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f05a489b000)<br>
libc.so.6 => /lib64/libc.so.6 (0x00007f05a44ed000)<br>
libdl.so.2 => /lib64/libdl.so.2 (0x00007f05a42e9000)<br>
libz.so.1 => /lib64/libz.so.1 (0x00007f05a40d3000)<br>
/lib64/ld-linux-x86-64.so.2 (0x00007f05a510e000)<br>
maria:~ #<br>
<br>
No mention of libwrap, yet I have TCP wrappers compiled in.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Does this mean I have to compile from source or is there a way to add the tcp wrapper support?<br>
</blockquote>
<br></span>
If your binary does not include TCP Wrappers, then you don't need to add it, and you don't need /etc/hosts.allow. If your binary does include it, you need /etc/hosts.allow. You don't have to have TCP Wrappers, and you don't have to recompile.<br>
<br>
Does your distribution have a mailing list which could answer the configuration question?<div class="HOEnZb"><div class="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>