tcpdmatch

The tcpdmatch utility enables you to test specific examples against your configuration files. Again, tcpdmatch enables you to test against a hosts.allow file in your current directory by specifying the -d option. It also recognizes the -i/path/to/inetd.conf if tcpdmatch has trouble finding it.

The syntax for tcpdmatch is as follows:

tcpdmatch daemon[@server] [user@]client

The server option is for multihomed hosts, and the user is for specific users at a client. See Listing 34.2 for sample tcpdmatch output.

Code Listing 34.2. Four Sample tcpdmatch Outputs
 # tcpdmatch in.telnetd bar warning: bar: hostname alias warning: (official name: bar.void.org) client: hostname bar.void.org client: address 192.168.0.2 server: process in.telnetd ...

Get Special Edition Using Linux®, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.