HP-UX Internet Services Administrator's Guide (August 2003)

TCP Wrappers
TCP Wrappers Files
Chapter 3 51
You can execute the tcpdmatch tool on the command line using the
following formats:
1. /usr/bin/tcpdmatch [-d] [-i inet_conf] daemon client
2. /usr/bin/tcpdmatch [-d] [-i inet_conf] daemon@[server] [use
r@]client
daemon Specifies a daemon name.
client Specifies the host name, network address, or the
unknown or paranoid wildcard formats.
server Specifies a host name or network address or the
unknown or paranoid wildcard formats.
user Indicates a client user identifier, and specifies a login
name or address. The default user name is unknown.
You can use the first tcpd syntax when a server has more than one
address or name.
Example 3-1 Sample Usage of the tcpdmatch Tool
The following example denotes how tcpd handles an ftp request from a
local system:
# tcpdmatch ftpd localhost
If the host name lookup fails, the same request is handled by tcpd as
follows:
# tcpdmatch ftpd 127.0.0.1
To determine what tcpd does when the client name and address do not
match, execute the following command at the command prompt:
# tcpdmatch ftpd paranoid
For more information on the tcpdmatch tool, type man 1 tcpdmatch, and
for more information on wildcard patterns, type man 5 hosts_access at
the HP-UX prompt.
The try-from Utility
The try-from utility identifies the detailed information regarding to a
connection. This utility must be called via a remote shell command to
determine if the host name and the address are recognized properly, and
also if the user name lookup works.