Pular para o conteúdo

Problemas com login lento no ProFTPD

Dica publicada em Linux / FTP
Carlos Marcelo Morgado Rêgo cmarcelo
Hits: 15.822 Categoria: Linux Subcategoria: FTP
  • Indicar
  • Impressora
  • Denunciar
O Viva o Linux depende da receita de anúncios para se manter. Ative os cookies aqui para nos patrocinar.
Não conseguimos carregar os anúncios. Se usa bloqueador, considere liberar o Viva o Linux para nos patrocinar.

Problemas com login lento no ProFTPD

Por muito tempo sofri com uma certa lentidão na conexão em meus servidores FTP quando esses possuíam firewall.

Isso ocorre por timeout no firewall ou no DNS, por padrão o ProFTPD procura por DNS reverso dos hosts que estão se conectando, quando esta opção prejudica o desempenho das conexões (este é o meu caso), você pode desabilitar esta consulta através dessas opções que devem ser incluídas no arquivo de configuração do ProFTPD (/etc/proftpd.conf):

O Viva o Linux depende da receita de anúncios para se manter. Ative os cookies aqui para nos patrocinar.
Não conseguimos carregar os anúncios. Se usa bloqueador, considere liberar o Viva o Linux para nos patrocinar.
UseReverseDNS   off
IdentLookups    off

Bom, é isso, espero que ninguém mais enfrente este problema.

Carlos Marcelo

O Viva o Linux depende da receita de anúncios para se manter. Ative os cookies aqui para nos patrocinar.
Não conseguimos carregar os anúncios. Se usa bloqueador, considere liberar o Viva o Linux para nos patrocinar.
Nenhuma dica encontrada.

FTP: Como aumentar a velocidade de login no ProFTPd - login rápido

FTP no NetBeans de uma forma simples

Instalar vsFTP rapidinho no Debian 4.0 Etch Linux

Acessando SFTP em modo gráfico com o Konqueror

Instalar OpenSSH no Debian Squeeze

#1 Comentário enviado por gpr.ppg.br em 03/06/2006 - 12:10h
muito, muito bom. funcionou que é uma beleza.
#2 Comentário enviado por fabriciojca em 18/05/2007 - 16:43h
Parabéns. Excelente!
#3 Comentário enviado por marlokko em 03/10/2007 - 12:35h
Parabéns mesmo! Funcionou muito bem no meu server... obrigado!
#4 Comentário enviado por andromeda em 24/10/2007 - 10:21h
Sempre dando boas dicas!!!!
tu é o Cara!!!!
#5 Comentário enviado por gpr.ppg.br em 03/03/2008 - 09:01h
...
#6 Comentário enviado por ramonpqdt em 24/09/2008 - 14:59h
show!!!

funcionou perfeitamente...
incluí
UseReverseDNS off
IdentLookups off

no final do arquivo e ficou assim: (funcionando perfeitamente)

#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#

# Includes DSO modules
Include /etc/proftpd/modules.conf

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 off

ServerName "Serv_EngPqdt"
ServerType standalone
DeferWelcome off

MultilineRFC2228 on
DefaultServer on
ShowSymlinks on

TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200

DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"

DenyFilter \*.*/

# Port 21 is the standard FTP port.
Port 21

# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
# PassivePorts 49152 65534

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
#MaxInstances 8000

# Set the user and group that the server normally runs at.
User proftpd
Group nogroup

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
# PersistentPasswd off

# Be warned: use of this directive impacts CPU average load!
#
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
# UseSendFile off

#TransferRate RETR 8000:10

TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log

<IfModule mod_tls.c>
TLSEngine off
</IfModule>

<IfModule mod_quota.c>
QuotaEngine on
</IfModule>

<IfModule mod_ratio.c>
Ratios on
</IfModule>


# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine on
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
</IfModule>

# A basic anonymous configuration, no upload directories.

# <Anonymous ~ftp>
# User ftp
# Group nogroup
# # We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
# # Cosmetic changes, all files belongs to ftp user
# DirFakeUser on ftp
# DirFakeGroup on ftp
#
# RequireValidShell off
#
# # Limit the maximum number of anonymous logins
# MaxClients 10
#
# # 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
# <Directory *>
# <Limit WRITE>
# DenyAll
# </Limit>
# </Directory>
#
# # Uncomment this if you're brave.
# # <Directory incoming>
# # # Umask 022 is a good standard umask to prevent new files and dirs
# # # (second parm) from being group and world writable.
# # Umask 022 022
# # <Limit READ WRITE>
# # DenyAll
# # </Limit>
# # <Limit STOR>
# # AllowAll
# # </Limit>
# # </Directory>
#
# </Anonymous>
# prende os usuários ao seu diretório home = livro pag 419 - servidores linux
DefaultRoot ~
# resolve o problema de lentidão na negociação com o servidor e transferência baixa
UseReverseDNS off
IdentLookups off


#7 Comentário enviado por deP3D3R em 09/03/2009 - 09:33h
aew o//
brigadao aii...
simples e funcional
#8 Comentário enviado por bahamuthxx em 14/05/2009 - 16:20h
Aeee!

Parabéns e muito obrigado =D

Faz tempo q tenho esse problema, hehe.

Mas aqui eu só coloquei a linha:

UseReverseDNS off

E já funcionou perfeito.

Vaaleeu, abraço.
#9 Comentário enviado por l-x em 27/09/2009 - 12:44h
Perfeito!!!

Ajudou master!!!
#10 Comentário enviado por mickeyknox em 08/02/2010 - 01:27h
Show de bola! Dica tão boa que valeu o cadastro no site só pra postar o elogio e comentar sobre o Xampp. Por sinal a dica saiu em primeiro lugar na busca por "login lento proftpd" no Google e resolveu 100% o problema, muito. Como uso o Xampp aqui, o arquivo fica localizado em outro diretório: /opt/lampp/etc/proftpd.conf e bastou usar a dica indicada e restartar o Xampp (sudo /opt/lampp/lampp restart).
#11 Comentário enviado por gustavoom88 em 15/02/2012 - 23:30h
Cara muito bom mesmo. Valeu pela super dica.
#12 Comentário enviado por marcelinoti em 17/07/2012 - 17:54h
Otimo parabens....deu certo aqui.
#13 Comentário enviado por dalila em 03/08/2015 - 15:14h

Cara, 11 anos depois, obrigada! Funcionou perfeitamente!
#14 Comentário enviado por robertogsantos em 20/10/2015 - 16:18h

Parabéns!!!!!! ajudou muito!!! 11 anos depois

Contribuir com comentário

Entre na sua conta para comentar.