Modify the /etc/inetd.conf and /etc/syslog.conf files to activate the use of tcpd (tcp wrapper) and log its activity.
For
any TCP based connection, tcpd can be used to examine the incoming
connection's address and decide whether to accept or reject it based on
the hosts.allow and hosts.deny files. This only occurs if you configure
inetd to actually use tcpd. On each TCP based entry in inetd.conf, you
insert the wrapper as the daemon which inetd will invoke, and pass to
the wrapper the name of the actual daemon and any options which you
would pass to it. For example:
ftp stream tcp nowait root /etc/uva/tcp_wrapper/tcpd ftpd -u 022
This configures the wrapper to be invoked for an incoming ftp
connection.
After you set up the inetd.conf file, you must signal inetd (kill -HUP pid, where pid is inetd's process id) to reread its configuration and activate the changes you made.
ITC's
tcpd includes logging through syslogd, using one of the local info
message categories. You should add an entry to /etc/syslog.conf which
looks like this:
local1.info /etc/uva/tcp_wrapper/log
The second parameter is where you want the log written. You can use
/var/log on Solaris, /etc/uva/tcp_wrapper on any AIX, Irix, or Solaris
system with the ITC tcpd implementation, or wherever you prefer to keep
the log.
After editing the syslog.conf file, you must signal syslogd (kill -HUP pid, where pid is syslogd's process id).