Disabling Passive ftp in ProFTPd

Discussion in 'Installation/Configuration' started by macguru, Nov 1, 2011.

  1. macguru

    macguru Member HowtoForge Supporter

    I would like to disable passive ftp mode in proftpd:

    <Limit EPSV PASV>
    DenyAll
    </Limit>

    How I can insert this into proftpd.conf, so it will not be overwritten by ISPConfig ?


    Thanks.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    ISPConfig does not overwrite proftpd.conf. :)
     
  3. macguru

    macguru Member HowtoForge Supporter

    I have 2 sets of proftpd.conf, one in /etc/ and 2nd in /etc/proftpd/

    1st seem to be one being used.

    Before upgrading to 2.2.40 everything worked fine, something went wrong after upgrade. Its not possible to connect to virtual hosts ftp anymore (even after I added "PassivePorts 49152 50152" and specified these ports in firewall).

    /etc/proftpd.conf

    DefaultRoot ~

    Include /etc/proftpd_ispconfig.conf

    PassivePorts 49152 50152


    -------------------------------

    /etc/proftpd_ispconfig.conf

    Please note duplicate <VirtualHost xxx.xxx.xxx.xxx> entries. I have 5 virtual hosts, however.

    ###################################
    #
    # ISPConfig proftpd Configuration File
    # Version 1.0
    #
    ###################################
    DefaultAddress 127.0.0.1
    <VirtualHost xxx.xxx.xxx.xxx>
    DefaultRoot ~
    AllowOverwrite on
    Umask 002
    <Anonymous /srv/www/web3/ftp>
    User web3_anonftp
    Group web3_anonftp
    UserAlias anonymous web3_anonftp
    UserAlias guest web3_anonftp
    MaxClients 10
    <Directory *>
    <Limit WRITE>
    DenyAll
    </Limit>
    </Directory>
    <Directory /srv/www/web3/ftp/incoming/*>
    Umask 002
    <Limit STOR>
    AllowAll
    </Limit>
    <Limit READ LIST>
    DenyAll
    </Limit>
    </Directory>
    </Anonymous>
    </VirtualHost>
    <VirtualHost xxx.xxx.xxx.xxx>
    DefaultRoot ~
    AllowOverwrite on
    Umask 002
    <Anonymous /srv/www/web3/ftp>
    User web3_anonftp
    Group web3_anonftp
    UserAlias anonymous web3_anonftp
    UserAlias guest web3_anonftp
    MaxClients 10
    <Directory *>
    <Limit WRITE>
    DenyAll
    </Limit>
    </Directory>
    <Directory /srv/www/web3/ftp/incoming/*>
    Umask 002
    <Limit STOR>
    AllowAll
    </Limit>
    <Limit READ LIST>
    DenyAll
    </Limit>
    </Directory>
    </Anonymous>
    </VirtualHost>
     

Share This Page