proFtp takes long on requiring password ....?

Discussion in 'Installation/Configuration' started by lyndros, May 16, 2007.

  1. lyndros

    lyndros New Member

    hi guys im having problems working with the webs in my server, when i try to connect to my server then appears connected to xxxxx.com but password is require 12 o 14 seconds later... so many programs return "connection timeout", other services are working fine & fast...

    another problem that i notice is if i make a backup throught ispconfig panel tool of all my web pages, and i try to download it, then takes to long to start the download and i received an erroneus 4kb long backup... the only way to save the backup is to save it on a ftp location...

    what is happening, thnks in advanced... :)
     
  2. punkpussy

    punkpussy New Member

    Disable lookups

    Hi,

    Two common reasons for this are Ident lookups and reverse dns lookups.
    To disable both functions add (or change) this to your proftpd.conf file:

    IdentLookups off
    UseReverseDNS off

    Greetz
     
  3. lyndros

    lyndros New Member

    i apply this, but still having the same problem, any help would be appreciated :)

    thnk u

    see u
     
    Last edited: May 17, 2007
  4. falko

    falko Super Moderator Howtoforge Staff

    Which distribution do you use? Any errors in your logs?

    Which ISPConfig version do you use?
     
  5. lyndros

    lyndros New Member

    Thks another time falko,

    I'm using ispconfig 2.2.11 on LTS dapper 6.06, proftpd version 1.2.10,

    my proftpd.conf looks like:

    [...]

    DefaultRoot ~
    UseReverseDNS off
    IdentLookups off
    ServerIdent off
    #ServerIdent on "FTP Server ready."

    ServerName "Server"
    ServerType standalone
    DeferWelcome off

    MultilineRFC2228 on
    DefaultServer on
    ShowSymlinks on

    TimeoutNoTransfer 600
    TimeoutStalled 600
    TimeoutIdle 1200

    [...]

    any idea?, i'll owe u more beers falko (i know u dont like them so i'll drink them all for u :D :p )

    NB: JUST FIXED !!!

    It seems that directives

    IdentLookups off
    ServerIdent off

    Must be specified on proftpd_ispconfig.conf:

    DefaultAddress 127.0.0.1
    <VirtualHost 91.121.26.134>
    DefaultRoot ~
    IdentLookups off
    ServerIdent off
    AllowOverwrite on
    Umask 002
    </VirtualHost>

    so virtualhost overrides default config section.

    THK U ALL!
     
    Last edited: May 17, 2007
  6. falko

    falko Super Moderator Howtoforge Staff

    Please add these directives to the proftpd_ispconfig.conf template in /root/ispconfig/isp/conf as well, or your changes in /etc/proftpd_ispconfig.conf will be overwritten by ISPConfig.
     
  7. Dennis

    Dennis New Member

    I think it is not necessary to add it to /root/ispconfig/isp/conf/proftpd_ispconfig.conf (by the way, my file is called proftpd_ispconfig.conf.master).

    I have only added it to /etc/proftpd_ispconfig.conf and it works fine. Until now I always thought UseReverseDNS off is needed as well, but I have not added it to my file. I also did not use ServerIdent off. I only used IdentLookups off. And don' t forget to restart your ftp server (/etc/init.d/proftpd restart).

    PS I neither had timeouts nor I had backup problems. I was only annoyed by slow ftp connect response.
     
  8. Dennis

    Dennis New Member

    falko was right! You need to add it to the ispconfig template file or your changes will be overwritten the next time you add or update a site through ispconfig. It might be even better to copy the proftpd template file to /root/ispconfig/isp/conf/customized_templates and modify the copy.

    proftpd_ispconfig.conf.master:
    Code:
    ###################################
    #
    # ISPConfig proftpd Configuration File
    #         Version 1.0
    #
    ###################################
    
    DefaultAddress 127.0.0.1
    
    <!-- BEGIN DYNAMIC BLOCK: vhost -->
    <VirtualHost {IP}>
            DefaultRoot             ~
            [B]IdentLookups            off[/B]
            ServerIdent             on "FTP Server Ready"
            AllowOverwrite          on
            Umask                   002
            {ANON_FTP}
    </VirtualHost>
    <!-- END DYNAMIC BLOCK: vhost -->
     

Share This Page