Skip to main content
IBM  
Shop Support Downloads
IBM Home Products Consulting Industries News About IBM
IBM developerWorks : Linux : Education - Tutorials
LPI certification 102 exam prep, Part 3
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
3. Internet services
  


Logging with TCP wrappers page 8 of 12


By default, connections are unrestricted but are logged. For example, we can restart inetd so that the changes from the previous panel take effect. Then some quick investigation should show the logged connections:


# telnet localhost
login: (press <ctrl-d> to abort)

# tail -1 /var/log/secure
Feb 12 23:33:05 firewall in.telnetd[440]: connect from 127.0.0.1

The telnet attempt was logged by tcpd, so it looks like we have things working. Since tcpd provides a consistent connection logging service, that frees up the individual service daemons from each needing to log connections on their own. In fact, it's similar to inetd doing the work of accepting connections, since that frees up each of the individual daemons from needing to accept their own connections. Isn't the simplicity of Linux (UNIX) marvelous?


Main menuSection menuFeedbackPreviousNext
Privacy Legal Contact