DoS against inetd? | Linux Today

DoS against inetd?

Written By
Web Webster
Web Webster
Sep 12, 1999

A long thread on Bugtraq regarding a method of remotely
disabling a server’s inetd programs has been brought to a
conclusion.

The thread started when a concerned person noticed that if you
can connect and disconnect from a service running out of inetd
(such as telnet, ftp, finger, etc), in time you will disable that
service altogether.

You can try it on your own machine with this command:

while true ; do (echo “quit” | telnet localhost 21) ;
done

Within 30 seconds, it should start “Refusing connections”, and
your FTP server is down.

To restart it, send a HUPSIG to inetd, with `killall -HUP
inetd`.

The problem is that you are hitting a builtin connection limit
for inetd. The default is to disable a service if more than 40
instances are started in a 60 second period.

You can increase this limit in the inetd.conf file. For example,
to increase the limit on telnet to 256, change:

telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
To:
telnet stream tcp nowait.256 root /usr/sbin/tcpd in.telnetd

and it will then require 256 hits in 60 seconds before disabling
the port.

If you’re very concerned, you can add a cron job to periodically
send a HUPSIG to inetd, to ensure that you’ll always be able to
login, even if the limit is reached.

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.