Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    Impossibile connettersi a ProFTPD da terminale

    Salve a tutti.

    Ho un problema a connettermi a ProFTPD sia da browser che da terminale.

    Quando digito da terminale: ftp xx.xx.xx.xx, mi ritorna la seguente risposta:

    Connected to xx.xx.xx.xx (xx.xx.xx.xx).
    421 Service not available, remote server has closed connection


    Il file di configurazione che ho specificato è il seguente:

    ServerName "Nome"
    ServerAdmin indirizzo@email.it
    ServerType standalone
    DefaultServer on
    IdentLookups off
    UseReverseDNS off
    Port 21
    Umask 022
    ListOptions "-a"
    AllowRetrieveRestart on
    AllowStoreRestart on
    MaxInstances 30
    User ftp
    Group ftp
    UseSendfile no

    LoadFile /usr/libexec/proftpd/mod_sql.so
    LoadFile /usr/libexec/proftpd/mod_sql_mysql.so
    LoadFile /usr/libexec/proftpd/mod_ldap.so

    LoadModule mod_sql.c
    LoadModule mod_sql_mysql.c

    # Configurazione MySQL:
    AuthOrder mod_sql.c mod_ldap.c

    SQLAuthenticate on
    SQLAuthTypes Plaintext
    SQLConnectInfo db@localhost:3306 username password
    SQLDefaultGID 1000
    SQLDefaultUID 1000
    SQLUserInfo utenti username passwd gid uid homedir shell
    SQLUserWhereClause "LoginAllowed='Y'"
    #SQLGroupInfo utenti groupname gid username
    #SQLLog PASS updatelogin
    #SQLNamedQuery updatelogin UPDATE "count=count+1 WHERE username='%u'" utenti

    # Filtri files/cartelle:
    PathAllowFilter "^[a-zA-Z0-9 _.-]()"
    PathDenyFilter (\.ftp)|(\.ht)[a-z]+$
    AllowFilter ""^[a-zA-Z0-9@~ /,_.-]*$""
    DenyFilter "%"

    DefaultRoot ~ !users

    # Normally, we want users to do a few things.
    <Global>
    AllowOverwrite yes
    <Limit ALL SITE_CHMOD>
    AllowAll
    </Limit>
    </Global>

    AllowForeignAddress on


    Qualcuno mi sa dire cosa c'è di sbagliato per piacere? Io non riesco a capirci niente.

    Grazie.

  2. #2

    Finito

    Ho risolto il problema cambiando server FTP da proftpd a pureftpd.

    Ci sono meno cose da configurare.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.