TCP wrappers can monitor and filter incoming requests for telnet, ftp, rlogin, rsh, finger, talk, and just about anything else that run out of inetd.conf.
telnet stream tcp nowait root in.telnetd in.telnetdWith TCP wrappers installed:
telnet stream tcp nowait root /usr/sbin/tcpd in.telnetdMost linux machines come with TCP wrappers installed but they compile it with the default options so the first thing you'll need to do is get the source and recompile. When you recompile you will want to change a few things in the Makefile.
As with any tool tha affects your system security you should read the instructions and understand what you're doing before installing it.
