ProFTPD - Strange behaviour - double config?

Discussion in 'Server Operation' started by skara, Sep 17, 2007.

  1. skara

    skara New Member


    i've installed an Debian Etch on a Strato vServer. Most of installation was done almost similar to the Perfect Debian Etch How-to here on howtoforge.

    Playing around with ProFTPD-Settings to get TLS working i pointed out a strange behaviour of the ftpserver.

    To take a long story short, local connection to the ftpserver seems to be a different configuration then remote access.
    I had changed the ServerIdent at /etc/proftpd.conf (ServerIdent on "FTP Server ready."). Login in local brings this message. Remote login brings up '220 ProFTPD 1.3.0 Server (Debian) []'

    netstat -tap gives:
    tcp        0      0 h123456.serverkomp:953 *:*                     LISTEN     27879/named         
    tcp        0      0 *:smtp                  *:*                     LISTEN     27844/master        
    tcp        0      0 *:https                 *:*                     LISTEN     27757/apache2       
    tcp        0      0 *:44060                 *:*                     LISTEN     26536/rpc.statd     
    tcp        0      0 *:imaps                 *:*                     LISTEN     26355/couriertcpd   
    tcp        0      0 *:pop3s                 *:*                     LISTEN     26381/couriertcpd   
    tcp        0      0 h123456.serverko:mysql *:*                     LISTEN     26268/mysqld        
    tcp        0      0 *:pop3                  *:*                     LISTEN     26360/couriertcpd   
    tcp        0      0 *:imap2                 *:*                     LISTEN     26337/couriertcpd   
    tcp        0      0 *:sunrpc                *:*                     LISTEN     26041/portmap       
    tcp        0      0 *:www                   *:*                     LISTEN     27757/apache2       
    tcp        0      0 *:81                    *:*                     LISTEN     27727/ispconfig_htt 
    tcp        0      0 *:auth                  *:*                     LISTEN     26392/inetd         
    tcp        0      0 *:ftp                   *:*                     LISTEN     27900/proftpd: (acc 
    tcp        0      0       *:*                     LISTEN     27879/named         
    tcp        0      0 h123456.serverk:domain *:*                     LISTEN     27879/named         
    tcp        0      0 *:ssh                   *:*                     LISTEN     26499/sshd          
    tcp        0   1984          xxxxxxxx-:62432 VERBUNDEN  27723/sshd: user
    ps aux brings only one proftpd. Nothing, what seems to me for another hit than maybe inetd.
    But i checked /etc/inetd.conf - but everything's commented out but of ident.

    I can bring further info if it's needed, but actually haven't got a glue, where else to look at ... :(

    Anybody an idea how to check this?
    Thanks in advance.

  2. falko

    falko Super Moderator ISPConfig Developer

    Did you restart Proftpd?

    Are you sure you're connecting to the right IP/hostname?
  3. skara

    skara New Member


    yes, it's the same server.

    in any of your howtos regarding debian setup you mentioned a /etc/hosts-file like
    Code: localhost localhost.localdomain
    trying 'telnet localhost 21' and 'telnet 21' directly on the machine was the same - different banners.

    it's not a problem at all - will use vsftpd. but being new to linux-setup i'm willing to learn. but i couldn't figure out, where's the problem so i asked here.

    if i can provide any further information, i will do so.

  4. skara

    skara New Member

    One more try... complete serverreinstall from the scratch. Strato vServer - Debian 3.1 install -> RecoveryMode -> Debootstrap (v1.0.3) to Etch
    Will post only things i suppose to be important [...config...] = configuration according Perfect Etch Setup:

    aptitude install ssh fail2ban sudo
    # above in recoverymode + chroot
    # REBOOT to normal mode
    aptitude -q --without-recommends -y install ~pstandard ~prequired ~pimportant
    aptitude -y install binutils cpp fetchmail flex gcc libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev linux-kernel-headers lynx m4 make ncftp nmap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++ quota screen ucf
    cat > /etc/hosts <<EOF       localhost localhost.localdomain
    85.214.x.x h123456
    aptitude install bind9 && /etc/init.d/bind9 stop [...config..]
    aptitude -y install mysql-server mysql-client libmysqlclient15-dev [...config..]
    aptitude install postfix libsasl2 sasl2-bin libsasl2-modules libdb3-util procmail && dpkg-reconfigure postfix[...config..]
    aptitude install courier-authdaemon courier-base courier-imap courier-imap-ssl courier-pop courier-pop-ssl courier-ssl gamin libgamin0 libglib2.0-0 [...config..]
    aptitude install apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert [...config..]
    aptitude install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-json php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl [...config..]
    cp /etc/proftpd/proftpd.conf /etc/proftpd/proftpd.conf.orig
    pico /etc/proftpd/proftpd.conf
    ## UseIPv6  'on' to 'off'
    cat >> /etc/proftpd/proftpd.conf <<EOF
    DefaultRoot ~
    IdentLookups off
    ServerIdent on "FTP Server ready."
    ln -s /etc/proftpd/proftpd.conf /etc/proftpd.conf
    aptitude install webalizer ntp ntpdate libhtml-parser-perl libdb-file-lock-perl libnet-dns-perl 
    [ISPC-Install as descriped - standard-mode]
    ISPC seems to be installed ok.
    telnet localhost 21 and telnet 21 give same banner 'FTP Server Ready'

    But restarting via ISPC brings above mentioned error - localhost='FTP Server ready''ProFTPD 1.3.0 Server (Debian) [85.214.xx.xx]'

    Manual deleting 'DefaultAddress' in /etc/proftpd_ispconfig.conf and /etc/init.d/proftpd restarting brings:
    Starting ftp server: proftpd - warning: "ProFTPD" address/port ( already in use by "Debian"
    But actually it brought identical banners - 'til ftp-restart via ISPC. That inserted DefaultAddress again.
    Slowly it drives me mad - but at least, my ftpserver now works.

    Deleting 'Include /etc/proftpd_ispconfig.conf' in /etc/proftpd.conf seems to work fine - restart via ispc and init.d worked. Why this include, if it doesn't work with but without?


    PS: did i mention? great work - your howtos and nevertheless ispconfig :)
  5. falko

    falko Super Moderator ISPConfig Developer

    It's needed if you want to have anonymous FTP for a web site. But if you like, you can put a modified template of the proftpd_ispconfig.conf file in the /root/ispconfig/isp/conf/customized_templates folder (the original template is in /root/ispconfig/isp/conf). ISPConfig will then use the modified template.

Share This Page