1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Question for the Proftpd Experts out there..

Discussion in 'Site & Server Administration' started by amelen, Jun 4, 2009.

Thread Status:
Not open for further replies.
  1. #1
    In my proftpd config I have 'MaxClientsPerHost' to limit the amount of concurrent connections from the same IP. What I'm trying to figure out though, is how do I exclude an IP from that list? So for example, I want 'MaxClientsPerHost 10' to be applied to all connections except 1 ip that I want white listed. Any thoughts?
     
    amelen, Jun 4, 2009 IP
  2. Gr33n3gg

    Gr33n3gg Well-Known Member

    Messages:
    141
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #2
    Perhaps try something like this:
      <Class whitelist>
        From 1.2.3.4/8
    MaxClientsPerHost XX
      </Class>
    Code (markup):
     
    Gr33n3gg, Jun 5, 2009 IP
  3. amelen

    amelen Active Member

    Messages:
    686
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    85
    #3
    Does that work in a proftpd config file? I've never seen anything like that? I'll give it a try though :)
     
    amelen, Jun 9, 2009 IP
  4. amelen

    amelen Active Member

    Messages:
    686
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    85
    #4
    Where would I put that code?

    - Fatal: <Class>: directive not allowed in <Global> context on line 22 of '/usr/local/etc/proftpd.conf'
    - Fatal: <Class>: directive not allowed in <VirtualHost> context on line 37 of '/usr/local/etc/proftpd.conf'
    - Fatal: MaxClientsPerHost: directive not allowed in server config context on line 75 of '/usr/local/etc/proftpd.conf'
     
    amelen, Jun 9, 2009 IP
  5. Gr33n3gg

    Gr33n3gg Well-Known Member

    Messages:
    141
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #5
    Gr33n3gg, Jun 9, 2009 IP
  6. amelen

    amelen Active Member

    Messages:
    686
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    85
    #6
    I tried putting it in global, virtual host, or just at the top before anything else. Got the errors I posted above. I'm running the latest version of proftpd. Does it have to be compiled with a specific option to support classes?
     
    amelen, Jun 10, 2009 IP
  7. amelen

    amelen Active Member

    Messages:
    686
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    85
    #7
    Taking a second looks.. it seems like <class> is not allowed in global or virtualhost, while MaxClientsPerHost is only allowed in global and virtualhost. Any ideas?
     
    amelen, Jun 10, 2009 IP
  8. Gr33n3gg

    Gr33n3gg Well-Known Member

    Messages:
    141
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #8
    Gr33n3gg, Jun 10, 2009 IP
Thread Status:
Not open for further replies.