1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Proftpd Max Clients Problem

Discussion in 'General Discussion' started by jasonl813, Sep 18, 2003.

  1. jasonl813

    jasonl813 New Member

    Joined:
    Sep 9, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Orlando, FL
    I have anonymous ftp turned of on my server. Users that are logging in are getting the message that a maximum of 3 clients can connect at once (when more than 3 try to login). How can I up the limit? The proftpd looks like it can limit the anonymous logins, but I didn't see anything for users. Any suggestions?

    cPanel 7.4.2 b158

    cPanel.net Support Ticket Number:
     
  2. anand

    anand Active Member

    Joined:
    Nov 11, 2002
    Messages:
    1,813
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    You can try this. Open /etc/proftpd.conf. Locate

    Code:
    
    # A basic anonymous configuration, no upload directories.
    <Anonymous ~ftp>
    <Limit LOGIN>
    DenyAll
    </Limit>
    UseFtpUsers on
    RequireValidShell off
    
      User                          ftp
      Group                         ftp
      # We want clients to be able to login with "anonymous" as well as "ftp"
      UserAlias                     anonymous ftp
    
      <Limit LOGIN>
        AllowAll
      </Limit>
      # Limit the maximum number of anonymous logins
      MaxClients                    10
    
      # We want 'welcome.msg' displayed at login, and '.message' displayed
      # in each newly chdired directory.
      DisplayLogin                  welcome.msg
      DisplayFirstChdir             .message
    
      # Limit WRITE everywhere in the anonymous chroot
      <Limit WRITE>
        DenyAll
      </Limit>
    
    </Anonymous>
    
    Look at the maxclients, increase it. This should work for you.

    cPanel.net Support Ticket Number:
     
  3. jasonl813

    jasonl813 New Member

    Joined:
    Sep 9, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Orlando, FL
    The max clients is set at 10, but the problem is when someone logs into a non-anonymous account they are getting limited to 3 connections per domain.

    Thanks for the reply though.

    cPanel.net Support Ticket Number:
     
  4. anand

    anand Active Member

    Joined:
    Nov 11, 2002
    Messages:
    1,813
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    Open the same file. Locate the entry for your domain in question. Locate this line inside that entry:
    Code:
             MaxClients 3 "Sorry, this ftp server has reached its maximum user count (%m).  Please try again later"
    
    Hope you find your solution this time. ;)

    cPanel.net Support Ticket Number:
     
  5. jasonl813

    jasonl813 New Member

    Joined:
    Sep 9, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Orlando, FL
    My proftpd.conf file looks very basic. There are no domain entries located in the file.

    cPanel.net Support Ticket Number:
     
  6. anand

    anand Active Member

    Joined:
    Nov 11, 2002
    Messages:
    1,813
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    Are you doing shared ip hosting ? I think the domains are listed in the proftpd.conf only if you have a dedicated ip assigned to the domain. I tried to find information for shared, but was unable to. Will keep in mind, once i get the info, will post here.

    Sorry.

    cPanel.net Support Ticket Number:
     
  7. Solokron

    Solokron Member

    Joined:
    Aug 8, 2003
    Messages:
    826
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Seattle
    I am receiving this same issue with one of my customers. I increased the max limit to 10 and he still recieves the error after some file transfers. Intially he was using cuteftp. I had him try smartftp. I wait till his connections time out which I verify, then have him try it again. Immediately his connections shoot up to 7+ then he exceeds 10.

    Any ideas?
     
  8. rivka

    rivka New Member

    Joined:
    Jul 22, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Has anyone found a solution to this? I tried modifying the config file for proftpd to set the max users to 10 and restarting it, and am still running into the same problem:

    530 Sorry, this ftp server has reached its maximum user count (3). Please try again later
     
  9. silvernetuk

    silvernetuk Member

    Joined:
    Sep 2, 2002
    Messages:
    311
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    United Kingdom
    Hi,

    I to am seeing this problem is there a fix ?

    Anand did it fix your problem what you tryed ?

    Regards,
    Garry
     
  10. jsteel

    jsteel Member

    Joined:
    Jul 4, 2002
    Messages:
    649
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    We're seeing this now as well for users on unique IPs. They have gone in and ensured there are no active sessions using the Session Management feature in cPanel, yet they still get the error. Sounds like a bug somewhere (if they have no active sessions, how are they using all of them?!?!)
     
  11. anand

    anand Active Member

    Joined:
    Nov 11, 2002
    Messages:
    1,813
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    I moved on to pureftpd on all my boxes. Had lot of trouble with proftpd. But read my post, the line i pointed helped me solve mine.

    Try it and let me know.
     
  12. wipl_piyush

    wipl_piyush Member

    Joined:
    Oct 31, 2003
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    NY
    I am having the same problem but in case of Pure FTP on my Cpanel Box.

    I need the solution for it. Please rely asps.
     
  13. anand

    anand Active Member

    Joined:
    Nov 11, 2002
    Messages:
    1,813
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    Did you try to increase the max clients value ?
     
  14. khoonchee

    khoonchee Member

    Joined:
    Oct 2, 2002
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    open the /etc/proftpd.conf and add the following directive to the configuration file :

    MaxInstances 10

    restart your proftpd service and have a try.
     
  15. DSLWeb

    DSLWeb New Member

    Joined:
    Apr 6, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    hmm i tried to edit /etc/proftpd.conf
    this is what opened:

    DisplayConnect /etc/issue.net
    DisplayConnect /etc/issue.net
    DisplayConnect /etc/issue.net
    DisplayConnect /etc/issue.net
    DisplayConnect /etc/issue.net
    DisplayConnect /etc/issue.net
    DisplayConnect /etc/issue.net
    DisplayConnect /etc/issue.net
    DisplayConnect /etc/issue.net
    DisplayConnect /etc/issue.net
    DisplayConnect /etc/issue.net
    DisplayConnect /etc/issue.net
    DisplayConnect /etc/issue.net
    DisplayConnect /etc/issue.net
    DisplayConnect /etc/issue.net
    DefaultRoot ~ !wheel


    I dont have the code to change this issue is there something wrong?
     
  16. racporto

    racporto New Member

    Joined:
    May 4, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    It worked for me

    Hi, this is a somewhat old thread but I think it can be usefull to others with this problem.

    I've edited /etc/ftpd.conf and increased MaxClients for the VirtualHosts that needed more conextions, restarted ProFTPd and it worked ok.

    My VirtualHost entry looks like this:

    <VirtualHost 0.0.0.0> VirtualHost IP here
    ExtendedLog /etc/httpd/domlogs/ftp.virtualhostdomain.com-ftpbytes_log READ BytesLog
    TransferLog /etc/httpd/domlogs/ftp.virtualhostdomain.com-ftp_log
    ServerName ftp.virtualhostdomain.com
    AuthUserFile /etc/proftpd/username
    MaxClients 20 "Desculpe, este servidor de FTP atingiu o máximo de conexões ativas (%m). Por favor, tente mais tarde."
    DirFakeGroup On ftpgroup
    DirFakeUser On ftpuser
    DefaultRoot ~
    <Directory />
    AllowOverwrite on
    HideGroup wheel
    HideUser root
    </Directory>
    <Anonymous /home/username/public_ftp>
    UseFtpUsers on
    RequireValidShell off
    User ftp
    Group ftp
    UserAlias anonymous ftp
    DisplayLogin welcome.msg
    DisplayFirstChdir .message
    <Limit WRITE>
    DenyAll
    </Limit>
    <Directory incoming>
    <Limit STOR>
    AllowAll
    </Limit>
    <Limit WRITE READ>
    DenyAll
    </Limit>
    </Directory>
    </Anonymous>
    </VirtualHost>
     

Share This Page