For a computer networking course I have to enable “Simple TCP/IP Services” to run some test programs. That’s the Windows term - I don’t know what the Linux term would be. Apparently, this is how you do it in Ubuntu:
If you want to enable these services under Linux (we’ll use Ubuntu in this demonstration) you have to add these lines to /etc/inetd.conf:
Hi
The ‘service’ should be named the same as the entry in /etc/services
which is all lowercase… you need to restart the xinetd service and
check that port 17 is active via nmap or netstat.
netstat -a | grep qotd
tcp 0 0 *:qotd *:* LISTEN
Now you also need to add a NAMEINARGS flag for it to use tcpd by the
looks, so manually edit to add;
service qotd
{
socket_type = stream
protocol = tcp
flags = NAMEINARGS
wait = no
user = root
server = /usr/sbin/tcpd
server_args = /usr/bin/fortune
}
Then restart the xinetd service, then try;
telnet localhost 17
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
If only one could get that wonderful feeling of accomplishment without
having to accomplish anything.
Connection closed by foreign host.