Authen::Tcpdmatch - Perl extension for parsing hosts.allow and hosts.deny
use Authen::Tcpdmatch; tcpdmatch( 'ftp', 'red.haw.org' ) tcpdmatch( 'ftp', '192.168.0.1' ) tcpdmatch( 'ftp', 'red.haw.org' , /etc )
This module in a front-end to the core functionality of tcpdmatch, which consults hosts.allow and hosts.deny to decide if service should be granted.
Its sole purpose is to choose load either TcpdmatchYapp (a yapp parser), or TcpdmatchRD ( a RecDescent parser) . In previous releases the default parser was yapp, but the default is now set to RecDecent since yapp is presently disabled.
The default action is to load the yapp parser since it is several times faster than RecDescent, and it is a lot easier to make it re-entrant.
Set the environment variable TCPDMATCH to "RD" in order to use the RecDescent parser, or just ignore this module and load "use Authen::Tcpdmatch::TcpdmatchRD" instead. The use interface is the same for all Authen::Tcpdmatch::Tcpdmatch* modules. =end
The first and second arguments are the requested service and the name of remote host, respectively. The third (optional) argument indicates the directory of the hosts.* files. (Default is /etc .)
It does not support shell commands, client lookups, endpoint patterns, spoofing attacks, and expansions. If these features are important to you, perhaps you should be using libwarp.so with Authen::Libwrap .
tcpdmatch
Ioannis Tambouras, <ioannis@earthlink.net>
Authen::libwrap. hosts.allow(1).
To install Authen::Tcpdmatch::Grammar, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Authen::Tcpdmatch::Grammar
CPAN shell
perl -MCPAN -e shell install Authen::Tcpdmatch::Grammar
For more information on module installation, please visit the detailed CPAN module installation guide.