Autor Tópico: GProFTPd - Acesso externo  (Lida 5188 vezes)

Offline Imigrante

  • Usuário Ubuntu
  • *
  • Mensagens: 145
    • Ver perfil
GProFTPd - Acesso externo
« Online: 26 de Abril de 2007, 13:40 »
Pessoal,
Instalei e configurei o GProFTPd no Feisty.
Localmente estou conseguindo acessar perfeitamente.
Externamente, os clientes FTP, ao acessarem o endereço, recebem o pedido de user e psw mas não conseguem se conectar.

Utilizei o seguinte critério para a criação dos diretórios e usuários:

   Diretório:                       Usuário:
   /var/ftp                          user
   /var/ftp/comum             comum
   /var/ftp/fer                   fer
   /var/ftp/outros                 outros

Cada user somente vê sua pasta, com exceção do "user" que vê todas.
Será algum problema com permissões??? Devo configurar alguma permissão especial nos diretórios especificados?

Abaixo segue o arquivo proftpd.conf (/etc/proftpd.conf):

Código: [Selecionar]
ServerType standalone
DefaultServer on
Umask 022
ServerName "user"
ServerIdent on "user"
ServerAdmin admin@msn.com
IdentLookups on
UseReverseDNS on
Port 2121
PassivePorts 49152 65534
#MasqueradeAddress None
TimesGMT on
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 60
TimeoutIdle 60
DisplayLogin welcome.msg
DisplayFirstChdir .message
User nobody
Group nobody
DirFakeUser off nobody
DirFakeGroup off nobody
DefaultTransferMode binary
AllowForeignAddress on
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
TransferRate RETR 0
TransferRate STOR 0
TransferRate STOU 0
TransferRate APPE 0
SystemLog /var/log/secure
RequireValidShell off
#gp_random_username_length 6
#gp_random_password_length 6
#gp_randomize_case lower
#gp_useradd_homedir_path /var/ftp
#gp_useradd_upload_path /upload
#gp_html_path /var/www/html/ftp.htm
#gp_welcome_name welcome.msg
<IfModule mod_tls.c>
TLSEngine off
TLSRequired off
TLSVerifyClient off
TLSProtocol TLSv1
TLSLog /var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gproftpd/gproftpd.pem
</IfModule>
<Limit LOGIN>
  AllowUser fer
  AllowUser outros
  AllowUser comum
  AllowUser user
  DenyALL
</Limit>

<Anonymous /var/ftp/fer>
User fer
Group fer
AnonRequirePassword on
MaxClients 3 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
AllowOverwrite on
<Limit LIST NLST  STOR STOU  RETR  RNFR RNTO  DELE  MKD XMKD SITE_MKDIR  RMD XRMD SITE_RMDIR  PWD XPWD  SIZE  STAT  CWD XCWD  CDUP XCUP >
 AllowAll
</Limit>
<Limit APPE  SITE  SITE_CHMOD  SITE_CHGRP  MTDM >
 DenyAll
</Limit>
</Anonymous>

<Anonymous /var/ftp/outros>
User outros
Group vitor
AnonRequirePassword on
MaxClients 3 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
AllowOverwrite on
<Limit LIST NLST  STOR STOU  RETR  RNFR RNTO  DELE  MKD XMKD SITE_MKDIR  RMD XRMD SITE_RMDIR  PWD XPWD  SIZE  STAT  CWD XCWD  CDUP XCUP >
 AllowAll
</Limit>
<Limit APPE  SITE  SITE_CHMOD  SITE_CHGRP  MTDM >
 DenyAll
</Limit>
</Anonymous>

<Anonymous /var/ftp/comum>
User comum
Group comum
AnonRequirePassword on
MaxClients 3 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
AllowOverwrite on
<Limit LIST NLST  STOR STOU  RETR  RNFR RNTO  DELE  MKD XMKD SITE_MKDIR  RMD XRMD SITE_RMDIR  PWD XPWD  SIZE  STAT  CWD XCWD  CDUP XCUP >
 AllowAll
</Limit>
<Limit APPE  SITE  SITE_CHMOD  SITE_CHGRP  MTDM >
 DenyAll
</Limit>
</Anonymous>

<Anonymous /var/ftp>
User user
Group user
AnonRequirePassword on
MaxClients 3 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
AllowOverwrite on
<Limit LIST NLST  STOR STOU  APPE  RETR  RNFR RNTO  DELE  MKD XMKD SITE_MKDIR  RMD XRMD SITE_RMDIR  SITE  SITE_CHMOD  SITE_CHGRP  MTDM  PWD XPWD  SIZE  STAT  CWD XCWD  CDUP XCUP >
 AllowAll
</Limit>
<Limit NOTHING >
 DenyAll
</Limit>
</Anonymous>

No Feisty, existe algum outro serviço ou firewall que deve ser configurado para funcionar o acesso externo?
Meu modem e router estão configurados corretamente para aceitar acesso FTP pela porta 2121!
Desde já agradeço pela colaboração de todos.
Abraços...
« Última modificação: 30 de Outubro de 2011, 19:19 por Imigrante »
Imigrante

Offline rodox12

  • Usuário Ubuntu
  • *
  • Mensagens: 304
  • Coisinha fofa!
    • Ver perfil
Re: GProFTPd - Problema com acesso externo
« Resposta #1 Online: 27 de Abril de 2007, 12:15 »
Ha algum problema em usar os usuario do sistema para o ftp??
Temos que fixar o bug #1.

Offline Imigrante

  • Usuário Ubuntu
  • *
  • Mensagens: 145
    • Ver perfil
Re: GProFTPd - Problema com acesso externo
« Resposta #2 Online: 16 de Maio de 2007, 14:09 »
Ha algum problema em usar os usuario do sistema para o ftp??
Rodox,
Criei os usuários no Feisty e não está funcionando o acesso externo.
OBS.: Reformulei e atualizei o tópico, na tentativa de me fazer entender e ser ajudado.
Abraços...
Imigrante

Offline Imigrante

  • Usuário Ubuntu
  • *
  • Mensagens: 145
    • Ver perfil
Re: GProFTPd - Problema com acesso externo
« Resposta #3 Online: 16 de Maio de 2007, 16:23 »
Alguém???

Abraços...
Imigrante