Первое соединение устанавливается аж 40 сек. Как избежать такой паузы?---------------------------
# ftp 192.168.0.3
Connected to 192.168.0.3.
>>>>>>>>> Вот здесь - пауза 40 секунд <<<<<<<<<<<<<<
220 Chainik at Chainikino.
Name (192.168.0.3:root):
---------------------------
Версия proftpd
# proftpd -v
- ProFTPD Version 1.2.10
Стоит на основательно подновленной Slackware 10.1
---------------------------
Далее привожу /etc/proftpd.conf и кусочек из inetd.conf
ServerName "Chainik at Chainikino."
#ServerType standalone
ServerType inetd
DefaultServer on
MaxInstances 30
ServerIdent on "Chainik at Chainikino."
#PassivePorts 51000 51999
Port 21
SystemLog /var/log/proftpd.log
<Global>
ServerIdent on "Chainik at Chainikino."
DefaultRoot ~ !staff
DefaultRoot /home staff
RequireValidShell off
PassivePorts 51000 51999
Umask 022
TransferLog /var/log/xferlog
<Directory /*>
AllowOverwrite on
</Directory>
</Global>
IdentLookups off
UseReverseDNS off
User nobody
Group nogroup
# A basic anonymous FTP server configuration.
# To enable this, remove the user ftp from /etc/ftpusers.
<Anonymous ~ftp>
RequireValidShell off
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 20
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
#DisplayLogin welcome.msg
#DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
# An upload directory that allows storing files but not retrieving
# or creating directories.
# <Directory incoming/*>
# <Limit READ>
# DenyAll
# </Limit>
#
# <Limit STOR>
# AllowAll
# </Limit>
# </Directory>
</Anonymous>
# ======= External interface settings ================================================
<VirtualHost a.b.c.d>
Port 21
ServerName "Chainik at Chainikino"
DefaultRoot ~ !staff
DefaultRoot /home staff
RequireValidShell off
# MasqueradeAddress a.b.c.d
<Limit WRITE DELE STOR MKD XMKD RNFR RNTO RMD XRMD>
AllowUser shurik
AllowUser incoming
DenyAll
</Limit>
<Anonymous ~ftp>
RequireValidShell off
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 20
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
#DisplayLogin welcome.msg
#DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
# An upload directory that allows storing files but not retrieving
# or creating directories.
# <Directory incoming/*>
# <Limit READ>
# DenyAll
# </Limit>
#
# <Limit STOR>
# AllowAll
# </Limit>
# </Directory>
</Anonymous>
</VirtualHost>
# ======= End of external interface settings ============================================
# ====== domain0001.ru ========================================================================
<VirtualHost 192.168.0.3>
Port 3910 # Do not forget to make correspondent corrections in /etc/inetd.conf
<Limit LOGIN>
DenyAll
</Limit>
<Anonymous /home/vasya/public_domain0001>
RequireValidShell off
User ftp
Group ftp
UserAlias anonymous ftp
MaxClients 20
<Limit LOGIN>
AllowAll
</Limit>
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
</VirtualHost>
<VirtualHost a.b.c.d>
Port 3910 # Do not forget to make correspondent corrections in /etc/inetd.conf
<Limit LOGIN>
DenyAll
</Limit>
<Anonymous /home/vasya/public_domain0001>
RequireValidShell off
User ftp
Group ftp
UserAlias anonymous ftp
MaxClients 20
<Limit LOGIN>
AllowAll
</Limit>
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
</VirtualHost>
# ====== domain0001.ru ========================================================================
# ====== subdomain0001 ========================================================================
<VirtualHost 192.168.0.3>
Port 3911 # Do not forget to make correspondent corrections in /etc/inetd.conf
<Limit LOGIN>
DenyAll
</Limit>
<Anonymous /home/subdomain0001/public_ftp>
RequireValidShell off
User ftp
Group ftp
UserAlias anonymous ftp
MaxClients 20
<Limit LOGIN>
AllowAll
</Limit>
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
</VirtualHost>
<VirtualHost a.b.c.d>
Port 3911 # Do not forget to make correspondent corrections in /etc/inetd.conf
<Limit LOGIN>
DenyAll
</Limit>
<Anonymous /home/subdomain0001/public_ftp>
RequireValidShell off
User ftp
Group ftp
UserAlias anonymous ftp
MaxClients 20
<Limit LOGIN>
AllowAll
</Limit>
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
</VirtualHost>
# ====== end of subdomain0001 ========================================================================
# ====== domain0003.ru ========================================================================
<VirtualHost 192.168.0.3>
Port 3916 # Do not forget to make correspondent corrections in /etc/inetd.conf
<Limit LOGIN>
DenyAll
</Limit>
<Anonymous /home/domain0003/public_html>
RequireValidShell off
User ftp
Group ftp
UserAlias anonymous ftp
MaxClients 20
<Limit LOGIN>
AllowAll
</Limit>
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
</VirtualHost>
<VirtualHost a.b.c.d>
Port 3916 # Do not forget to make correspondent corrections in /etc/inetd.conf
<Limit LOGIN>
DenyAll
</Limit>
<Anonymous /home/domain0003/public_html>
RequireValidShell off
User ftp
Group ftp
UserAlias anonymous ftp
MaxClients 20
<Limit LOGIN>
AllowAll
</Limit>
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
</VirtualHost>
# ====== end of domain0003.ru ========================================================================
Вот - кусочек из /etc/inetd.conf
# Professional File Transfer Protocol (FTP) server.
ftp stream tcp nowait root /usr/sbin/tcpd proftpd
3910 stream tcp nowait root /usr/sbin/tcpd proftpd
3911 stream tcp nowait root /usr/sbin/tcpd proftpd
3916 stream tcp nowait root /usr/sbin/tcpd proftpd