Aller au contenu

Proftpd


Messages recommandés

bonjour,

j'ai installer 'proftpd' avec ipkg la configuration est anonyme mais impossible d' établir

une connexion, je reçois bien la connexion avec l' indication Proftpd mais refuse

mot de passe anonymous tout autant que admin ou root ??

une idée merçi

André

DS211+ - DSM3.1

Lien vers le commentaire
Partager sur d’autres sites

bonjour,

j'ai installer 'proftpd' avec ipkg la configuration est anonyme mais impossible d'

Lien vers le commentaire
Partager sur d’autres sites

netsat

1 - désactiver le ftp du syno

2 - lancer proftpd

3 - vérifier avec netstat -tan |grep LISTEN que proftpd écoute bien

4 - se connecter avec le login ftp (ou anonymous) et n'importe quoi comme mot de passe (regarder dans la conf de proftpd si elle est bien standard)

merçi de me répondre 'cricx'

cela me donne:

DiskStation> netstat -tan |grep LISTEN

tcp 0 0 0.0.0.0:49152 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:548 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:45286 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:4712 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:3689 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:50001 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:50002 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:56850 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:4662 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:4700 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:892 0.0.0.0:* LISTEN

tcp 0 0 ::%1:515 ::%3199728100:* LISTEN

tcp 0 0 ::%2:5000 ::%3199728100:* LISTEN

tcp 0 0 ::%3:139 ::%3199728100:* LISTEN

tcp 0 0 ::%4:143 ::%3199728100:* LISTEN

tcp 0 0 ::%5:80 ::%3199728100:* LISTEN

tcp 0 0 ::%6:21 ::%3199728100:* LISTEN

tcp 0 0 ::%7:631 ::%3199728100:* LISTEN

tcp 0 0 ::%8:23 ::%3199728100:* LISTEN

tcp 0 0 ::%9:7000 ::%3199728100:* LISTEN

tcp 0 0 ::%10:5432 ::%3199728100:* LISTEN

tcp 0 0 ::%11:445 ::%3199728100:* LISTEN

DiskStation>

lr port 21 semble bien LISTEN

j'ai coupé l'exécution du FTP pour le démarrage classique

quand je ne connecte pat ftp://192.168.1.15 je reçois bien un petit panneau

login et mot de passe mais aucun ne fonctionne ???

la config est en stand alone et fonctionne bien sur un pc serveur??

# TransferRate APPE,STOR 100:2048

</Global>

# Set the user and group under which the server will run.

User nobody

Group nobody

#Group nogroup

#

# To cause every FTP user to be "jailed" (chrooted) into their home

# directory, uncomment this line.

#DefaultRoot ~

# Normally, we want files to be overwriteable.

AllowOverwrite on

# Bar use of SITE CHMOD by default

<Limit SITE_CHMOD>

DenyAll

</Limit>

# A basic anonymous configuration, no upload directories. If you do not

# want anonymous users, simply delete this entire <Anonymous> section.

#<Anonymous ~ftp>

<Anonymous /public>

User ftp

Group ftp

# We want clients to be able to login with "anonymous" as well as "ftp"

UserAlias anonymous ftp

#line added by on4hu 26/5/2011

RequireValidShell off

# Limit the maximum number of anonymous logins

MaxClients 5

# 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>

</Anonymous>

Lien vers le commentaire
Partager sur d’autres sites

pourtant:

Connection closed by foreign host.

[root@localhost on4hu]# telnet 192.168.1.15 21

Trying 192.168.1.15...

Connected to DiskStation.local (192.168.1.15).

Escape character is '^]'.

220 ProFTPD 1.3.3e Server (ProFTPD Default Installation) [::ffff:192.168.1.15]

user on4hu

331 Password required for on4hu

pass xxxxxxxxx (je rentre le m-d-p réel)

530 Login incorrect.

incompréhensible

essaye plutôt avec la commande ftp...

Lien vers le commentaire
Partager sur d’autres sites

essaye plutôt avec la commande ftp...

pareil pas d'accès

que je mette login Anonymous et une adresse e-mail comme m-d-p

ou un nom utilisateur et son mdp j'ai erreur login incorrect, j'ai ajouté dans la config

<Limit LOGIN>

AllowAll

</Limit>

mais rien y fait tout ce passe comme si le Syno ne tient pas compte ni des login ni des mot de passe

Lien vers le commentaire
Partager sur d’autres sites

pareil pas d'accès

que je mette login Anonymous et une adresse e-mail comme m-d-p

ou un nom utilisateur et son mdp j'ai erreur login incorrect, j'ai ajouté dans la config

<Limit LOGIN>

AllowAll

</Limit>

mais rien y fait tout ce passe comme si le Syno ne tient pas compte ni des login ni des mot de passe

personne n'as installer 'proftpd' sur un Syno ???

le vais essayé le support mais supporte t'il ce genre de question

Lien vers le commentaire
Partager sur d’autres sites

personne n'as installer 'proftpd' sur un Syno ???

le vais essayé le support mais supporte t'il ce genre de question

le support ne prend pas en compte les paquets installés par toi...

peux-tu ouvrir le ftp de ton syno vers internet, que je teste ? (sur un autre port que ton ftp actuel, bien sûr)

Lien vers le commentaire
Partager sur d’autres sites

le support ne prend pas en compte les paquets installés par toi...

peux-tu ouvrir le ftp de ton syno vers internet, que je teste ? (sur un autre port que ton ftp actuel, bien sûr)

il est ouvert pour les port de 5000 à 8000 et le port 21 + 23 avec mon dom de domaine on4hu.be

pour ftpd je n'ai jamais eu de problème avec proftpd sur aucun PC mais sur ce NAS c'est la croix et la banière!

merçi

le port ftp 21 sera ensuite sur mon serveur (pc) vu qu'impossible de le faire fonctionner sur le syno

Lien vers le commentaire
Partager sur d’autres sites

ftp ftp.on4hu.be

Connected to on4hu.dyndns.org.

220 ProFTPD 1.3.3e Server (ProFTPD Default Installation) [::ffff:192.168.1.15]

500 AUTH not understood

Name : anonymous

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

Password:

530-Unable to set anonymous privileges.

530 Login incorrect.

Login failed.

Remote system type is UNIX.

Using binary mode to transfer files.

donc le serveur répond, mais n'arrive pas à définir les privilèges du mode anonyme...

c'est souvent dû à un problème de droits sur le répertoire, ou à un chroot dans la section global.

Poste ton proftpd.conf complet pour vérification

je dois l'avoir déjà posté, mais peut être déja modifier mais les fichiers sont TOUS passés a la moulinette

et sont chrooter mais rien n'y fait

ce qui est ténébreux c'est que même en admin refusé, en root refusé, en user refusé en anonymous refusé

avec un PC Windows le serveur proftpd ouver bien la fenêtre avec anonyous et mot de passe avec une adresse e-mail

mais me donne invariablement login failed

voila la config dernière mouture:

This is a basic ProFTPD configuration file (rename it to

# 'proftpd.conf' for actual use. It establishes a single server

# and a single anonymous login. It assumes that you have a user/group

# "nobody" and "ftp" for normal operation and anon.

ServerName "ProFTPD Default Installation"

#ServerType inetd

ServerType standalone

DefaultServer on

WtmpLog off

# Port 21 is the standard FTP port.

Port 21

# Umask 022 is a good standard umask to prevent new dirs and files

# from being group and world writable.

Umask 022

# 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 10

<Global>

RootLogin On

RequireValidShell off

AuthUserFile /etc/passwd

AllowStoreRestart on

# TransferRate RETR 25

# TransferRate APPE,STOR 100:2048

</Global>

# Set the user and group under which the server will run.

User nobody

Group nobody

#

# To cause every FTP user to be "jailed" (chrooted) into their home

# directory, uncomment this line.

#DefaultRoot ~

# Normally, we want files to be overwriteable.

AllowOverwrite on

This is a basic ProFTPD configuration file (rename it to

# 'proftpd.conf' for actual use. It establishes a single server

# and a single anonymous login. It assumes that you have a user/group

# "nobody" and "ftp" for normal operation and anon.

ServerName "ProFTPD Default Installation"

#ServerType inetd

ServerType standalone

DefaultServer on

WtmpLog off

# Port 21 is the standard FTP port.

Port 21

# Umask 022 is a good standard umask to prevent new dirs and files

# from being group and world writable.

Umask 022

# 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 10

<Global>

RootLogin On

RequireValidShell off

AuthUserFile /etc/passwd

AllowStoreRestart on

# TransferRate RETR 25

# TransferRate APPE,STOR 100:2048

</Global>

# Set the user and group under which the server will run.

User nobody

Group nobody

#

# To cause every FTP user to be "jailed" (chrooted) into their home

# directory, uncomment this line.

#DefaultRoot ~

# Normally, we want files to be overwriteable.

AllowOverwrite on

# Set the user and group under which the server will run.

User nobody

Group nobody

#

# To cause every FTP user to be "jailed" (chrooted) into their home

# directory, uncomment this line.

#DefaultRoot ~

# Normally, we want files to be overwriteable.

AllowOverwrite on

# Bar use of SITE CHMOD by default

<Limit SITE_CHMOD>

DenyAll

</Limit>

# A basic anonymous configuration, no upload directories. If you do not

# want anonymous users, simply delete this entire <Anonymous> section.

#<Anonymous ~ftp>

<Anonymous /public>

User ftp

Group ftp

# We want clients to be able to login with "anonymous" as well as "ftp"

UserAlias anonymous ftp

#added by on4hu 27.5.2011

<Limit LOGIN>

AllowAll

</Limit>

# Limit the maximum number of anonymous logins

MaxClients 5

# 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>

</Anonymous>

Lien vers le commentaire
Partager sur d’autres sites

j' ai réussi a trouver la raison mais pas la solution

le probleme est présent aussi avec le ftp original

si j'entre la commande en telnet sur le port 21

telnet on4hu.be 21

Connected to on4hu.be (81.243.277.80)

220 DiskStation FTP server ready

user anonymous

331 Guest login ok, send your email adress as password

toto@toto.com

500 TOTO@TOTO.COM , command not understood

?????

le Syno change le mot de passe en lettre MAJUSCULE et donc le mot de passe est inexact

je suis repasser avec Proftpd même topo????

hum... bizarre !

essaie de regarder dans les logs de proftpd...

sinon, là tu es repassé avec le ftp du syno et le login en anonymous fonctionne.

Lien vers le commentaire
Partager sur d’autres sites

oui avec ftp du syno cela semble bon mais impossible pour une connexion anonymous de voir directement

les r

Lien vers le commentaire
Partager sur d’autres sites

non je n'ai pas éssayer mais c'est peut être une piste de faire le contraire copier la config de ma mandriva qui elle fonctionne

a 100%, sur le syno en changeant les chemins...

merci cricx pour les réponse le problème est résolu

j'ai changer proftpd.conf de mon pc mandriva vers le syne et modifier les liens et tout ce passe bien maintenant

pourtant je ne vois rien de 'mal' au fichier original ????

j'annexe ici proftpd.conf et proftpd-anonymous.conf cela peut peut être servir a d'autre

#-------------------------------------------- proftpd.conf -----------------------------------------------------

#

# /opt/etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.

# To really apply changes reload proftpd after modifications

#

#

ServerName "ProFTPD Default Installation"

ServerType standalone

# Allow FTP resuming.

# Remember to set to off if you have an incoming ftp for upload

#AllowStoreRestart on

# 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 10

<Global>

RootLogin On

RequireValidShell off

AuthUserFile /etc/passw

AllowStoreRestart on

# Set the user and group under which the server will run.

User nobody

Group nobody

# Umask 022 is a good standard umask to prevent new files and dirs

# (second parm) from being group and world writable.

Umask 022

# To cause every FTP user to be "jailed" (chrooted) into their home

# directory, uncomment this line.

#DefaultRoot ~

# 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

# Bar use of SITE CHMOD by default

<Limit SITE_CHMOD>

DenyAll

</Limit>

Include /opt/etc/proftpd-anonymous.conf

#----------------------------proftpd-anonymous.conf------------------------------------------

<Anonymous /public>

# Allow logins if they are disabled above.

<Limit LOGIN>

AllowAll

</Limit>

# Maximum clients with message

MaxClients 5 "Sorry, max %m users -- try again later"

User ftp

Group ftp

# We want clients to be able to login with "anonymous" as well as "ftp"

UserAlias anonymous ftp

RequireValidShell off

# Limit WRITE everywhere in the anonymous chroot

<Limit WRITE>

DenyAll

</Limit>

</Anonymous>

Lien vers le commentaire
Partager sur d’autres sites

Rejoindre la conversation

Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

Invité
Répondre à ce sujet…

×   Collé en tant que texte enrichi.   Coller en tant que texte brut à la place

  Seulement 75 émoticônes maximum sont autorisées.

×   Votre lien a été automatiquement intégré.   Afficher plutôt comme un lien

×   Votre contenu précédent a été rétabli.   Vider l’éditeur

×   Vous ne pouvez pas directement coller des images. Envoyez-les depuis votre ordinateur ou insérez-les depuis une URL.

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.