Mon serveur proftpd inaccessible depuis internet

Bonsoir,

voilà j’ai un problème avec mon serveur proftpd qui est inaccessible depuis l’internet.

Pour le paramétrer j’utilise Gadmin-proftpd.

Je précise que mon serveur est accessible sur le réseau local depuis un autre pc.
J’ai bien pensé pour l’accès exterieur à rediriger le port 21 49152 et 49153 (j’ai restreint la plage des ports possibles pour le ftp passif) vers la machine qui héberge le serveur qui a l’ip 192.168.0.5

lorsque je fais un test depuis le site gene6FTPserver j’obtiens le message suivant :

  • About to connect() to port 21
  • Trying … connected
  • Connected to port 21
    < 220 FTP server ready

USER toto
< 331 Anonymous login ok, send your complete email address as your password

PASS *****
< 230 Anonymous access granted, restrictions apply

PWD
< 257 “/” is the current directory

  • Entry path is ‘/’

CLNT Testing from g6ftpserver.com/ftptest from IP
< 500 CLNT not understood

  • QUOT command failed with 500

  • Connection #0 to host left intact

  • Closing connection #0

Je vous donne aussi la configuration du serveur telle qu’on la trouve dans l’onglet configuration de Gadminproftpd :

ServerType standalone
DefaultServer on
Umask 022
ServerName "192.168.0.5"
ServerIdent off ""
ServerAdmin email@example.org
IdentLookups on
UseReverseDNS on
Port 21
PassivePorts 49153 49154
MasqueradeAddress 82.67.90.4
TimesGMT off
MaxInstances 30
MaxLoginAttempts 50
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
DisplayLogin welcome.msg
DisplayChdir .message
User nobody
Group nobody
DirFakeUser off nobody
DirFakeGroup off nobody
DefaultTransferMode binary
AllowForeignAddress off
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
TransferRate RETR 220
TransferRate STOR 250
TransferRate STOU 250
TransferRate APPE 250
SystemLog /var/log/secure
RequireValidShell off

AuthPAM off


TLSEngine off
TLSRequired off
TLSVerifyClient off
TLSProtocol SSLv23 , TLSv1
TLSLog /var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gadmin-proftpd/certs/cert.pem
TLSRSACertificateKeyFile /etc/gadmin-proftpd/certs/key.pem
TLSCACertificateFile /etc/gadmin-proftpd/certs/cacert.pem
TLSRenegotiate required off


Ratios off
SaveRatios off
RatioFile "/restricted/proftpd_ratios"
RatioTempFile "/restricted/proftpd_ratios_temp"
CwdRatioMsg "Please upload first!"
FileRatioErrMsg "FileRatio limit exceeded, upload something first…"
ByteRatioErrMsg "ByteRatio limit exceeded, upload something first…"
LeechRatioMsg "Your ratio is unlimited."


AllowUser toto
DenyALL

Anonymous /var/ftp/anonymous>
User toto
Group ftpusers
AnonRequirePassword off
MaxClients 5 "The server is full, hosting %m users"
DisplayLogin welcome.msg

Allow from all
Deny from all


AllowAll


DenyAll

voilà dans l’onglet serveur j’ai activé NAT sur “on” et j’ai entré en face mon ip publique sur la premiere ligne j’ai mis l’ip privé de la machine qui héberge le serveur 192.168.0.5.

J’espère que vous pourrez m’aider.

Merci à tous

D’ailleurs ca ne marche nule-part ce site vu qu’ils testent rien, a part le mot de passe (CLNT n’existe pas dans la norme et QUOT ils ne l’envoient jamais, ils coupent la connexion)
Et puis comme ca ils ont ton mot de passe. Hum…