proftpd configuration

Discussion in 'Installation/Configuration' started by malinens, Jan 14, 2008.

  1. malinens

    malinens New Member

    Code:
     /etc/init.d/proftpd restart
     * Stopping ftp server proftpd                                           [ OK ] 
     * Starting ftp server proftpd                                                   - IPv4 getaddrinfo 'server1.example.com' error: No address associated with hostname
     - warning: unable to determine IP address of '[B]server1.example.com[/B]'
     - IPv4 getaddrinfo 'Unspecified' error: No address associated with hostname
     - IPv4 getaddrinfo 'Unspecified' error: No address associated with hostname
     - warning: unable to determine IP address of 'Unspecified'
     - IPv4 getaddrinfo 'Unspecified' error: No address associated with hostname
     - IPv4 getaddrinfo 'Unspecified' error: No address associated with hostname
     - warning: unable to determine IP address of 'Unspecified'
     - IPv4 getaddrinfo 'server1.example.com' error: No address associated with hostname
     - warning: unable to determine IP address of 'server1.example.com'
     - IPv4 getaddrinfo 'Unspecified' error: No address associated with hostname
     - warning: unable to determine IP address of 'Unspecified'
     - IPv4 getaddrinfo 'Unspecified' error: No address associated with hostname
     - warning: unable to determine IP address of 'Unspecified'
                                                                             [ OK ]

    my /etc/proftpd/proftpd.conf:
    Code:
    ServerType standalone
    DefaultServer on
    Umask 022
    ServerName "my ip"
    ServerIdent on "mydomain.lv"
    ServerAdmin Admin@mydomain.lv
    IdentLookups off
    UseReverseDNS off
    UseIPv6 off
    Port 21
    PassivePorts 49167 65534
    #MasqueradeAddress None
    TimesGMT off
    MaxInstances 30
    MaxLoginAttempts 3
    TimeoutLogin 300
    TimeoutNoTransfer 120
    TimeoutIdle 120
    DisplayLogin welcome.msg
    User nobody
    Group nobody
    DirFakeUser off nobody
    DirFakeGroup off nobody
    DefaultTransferMode binary
    AllowForeignAddress on
    AllowRetrieveRestart on
    AllowStoreRestart on
    DeleteAbortedStores off
    TransferRate RETR 30
    TransferRate STOR 40
    TransferRate STOU 40
    TransferRate APPE 40
    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_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>
    <IfModule mod_ratio.c>
    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."
    </IfModule>
    <Limit LOGIN>
      AllowUser torrentz
      DenyALL
    </Limit>
    
    <Anonymous /var/ftp/Click_Here>
    User torrentz
    Group torrentz
    AnonRequirePassword on
    MaxClients 50000 "The server is full, hosting %m users"
    DisplayLogin welcome.msg
    <Limit LOGIN>
    Allow from all
    Deny from all
    </Limit>
    AllowOverwrite on
    <Limit LIST NLST  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 STOR STOU >
     DenyAll
    </Limit>
    <Directory /home/juris/torrentz/htdocs>
    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>
    </Directory>
    </Anonymous>
    what I did wrong?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Either server1.example.com is listed in your proftpd.conf as hostname or it is set as hostname of your server. Please change this to a existing hostname that points to your server.
     

Share This Page