How to verify whether a service supports tcpwrapper

  

Method 1: Query using ldd

[example]

#ldd `which vsftpd` |  Grep libwrap

As long as the result shows libwrap.so.0, the service supports tcpwrapper

Method 2: Query using strings

[example]

#strings `which portmap` |  Grep hosts

There are:

/etc/hosts.allow

/etc/hosts.deny

This means that the service supports tcpwrapper.

When we detect whether a service supports tcpwrapper, as long as any of the above two methods are satisfied, it means that the service supports tcpwrapper.

Copyright © Windows knowledge All Rights Reserved