zeldor.biz

Linux, programming and more

Copyright © 2023
Log in

Internet Super Server

February 12, 2013 by Igor Drobot Leave a Comment

super-server

Inetd listens for connections on certain sockets. When a connection is found on one of its sockets, it decides what service the socket corresponds to, and invokes a program to service the request. The server program is invoked with the service socket as its standard input, output and error descriptors.

Essentially, inetd allows running one daemon to invoke several others, reducing load on the system.

Load was the keyword in my case, I was able to make positive tests with inetd.
For example proftpd: if a new connection will be found, service will be started. Proftpd don’t runs all the time.

Debian-Package: inetutils-inetd

1
apt-get install inetutils-inetd

apt-get install inetutils-inetd

Proftpd configuration /etc/proftpd/proftpd.conf:

1
2
ServerName                      "192.168.3.11"
ServerType                      inetd

ServerName "192.168.3.11" ServerType inetd

Example inetd configuration for SSH and FTP service:

1
2
3
/etc/inetd.conf
ftp    stream  tcp     nowait  root    /usr/sbin/tcpd  /usr/sbin/proftpd -c /etc/proftpd/proftpd.conf
ssh    stream  tcp     nowait  root    /usr/sbin/sshd sshd -i

/etc/inetd.conf ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/proftpd -c /etc/proftpd/proftpd.conf ssh stream tcp nowait root /usr/sbin/sshd sshd -i

Filed Under: Bash, Debian, FTP, HTTP, Linux, Networking, Ubuntu Tagged With: Debian, FTP, inetd, ssh

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *