|
Linux Network Administrator Guide, Second EditionNetwork Administrator would want to limit access to these services to "trusted hosts" only, which is impossible with the usual setup, for which inetd provides this service either to all clients or not at all. A useful tool for managing host-specific access is tcpd, often called the daemon "wrapper."[69] For TCP services you want to monitor or protect, it is invoked instead of the server program. tcpd checks if the remote host is allowed to use that service, and only if this succeeds will it execute the real server program. tcpd also logs the request to the syslog daemon. Note that this does not work with UDP-based services. For example, to wrap the finger daemon, you have to change the corresponding line in inetd.conf from this: # unwrapped finger daemon fingerPPP stream tcp nowait binPPP /usr/sbin/fingerd in.fingerd to this: # wrap finger daemon fingerP streamP tcpPPPP nowaitP rootPPP /usr/sbin/tcpdPP in.fingerd Without adding any access control, this will appear to the client as the usual finger setup, except that any requests are logged to syslog 's auth facility ...» | Код для вставки книги в блог HTML
phpBB
текст
|
|