Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member Vatoloco's Avatar
    Join Date
    Jun 2004
    Posts
    100

    Default Stopping Brute Force FTP login attacks?

    Without installing APF and BFD, what's a good way to stop these? I recently stopped the brute force attacks on SSH by changing the port. Is it possible to do something similar with FTP?

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2003
    Location
    NC
    Posts
    725
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Yes if are using proftpd /etc/proftpd.conf has what you need. I am not sure where the pure-ftp config files are.

  3. #3
    Member Sinewy's Avatar
    Join Date
    May 2004
    Location
    Sydney, Australia
    Posts
    370

    Default

    /etc/pure-ftpd.conf

    haven't seen any bruteforce related options in there though.

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2003
    Location
    NC
    Posts
    725
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Sinewy
    /etc/pure-ftpd.conf

    haven't seen any bruteforce related options in there though.
    but you can change the port

  5. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You can, of course, use BFD without APF and configure BFD to either put detected IP addresses in /etc/hosts.deny or directly into iptables.

    You could also use PAM limits (depending on your OS) but that only applies to services using PAM which some (like proftpd) don't.

    Quote Originally Posted by Vatoloco
    Without installing APF and BFD, what's a good way to stop these? I recently stopped the brute force attacks on SSH by changing the port. Is it possible to do something similar with FTP?
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  6. #6
    Member Vatoloco's Avatar
    Join Date
    Jun 2004
    Posts
    100

    Default

    Quote Originally Posted by eth00
    Yes if are using proftpd /etc/proftpd.conf has what you need. I am not sure where the pure-ftp config files are.
    proftpd is what I'm using. Does anyone know if changing the port is going to mess anything up? I've noticed in my logs there is a consistent login and timeout from 127.0.0.1. I'm guessing that's cpanel just checking to make sure the service is active. Will changing the port prevent that from working and thus cpanel will be constantly rebooting ftp?

  7. #7
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You could change the port chkservd uses in:

    /etc/chkserv.d/proftpd

    However, your next cPanel update could well overwrite the file. I've never been that much a fan of moving ports, though it does tend to avoid the skiddies, a hacker would obviously have no problems finding it.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  8. #8
    Member Vatoloco's Avatar
    Join Date
    Jun 2004
    Posts
    100

    Default

    Quote Originally Posted by chirpy
    You could change the port chkservd uses in:

    /etc/chkserv.d/proftpd

    However, your next cPanel update could well overwrite the file. I've never been that much a fan of moving ports, though it does tend to avoid the skiddies, a hacker would obviously have no problems finding it.
    Thanks!

    One more question, is there a way to just disable it from checking ftp? I could care less if FTP is down for along time. I only use it a couple times a month and if it happens to me down at those times I could just restart it myself.

  9. #9
    Member LiNUxG0d's Avatar
    Join Date
    Jun 2003
    Location
    Gatineau, Quebec, Canada
    Posts
    206

    Default

    Orrrr, if the abusers are coming off the same net all the time, and you're running "IP Tables", you can:

    Example which bans a fictional /16:
    iptables -A INPUT -p ALL -s 218.145.0.0/16 -j REJECT

    Basically, all traffic on all protocols will be rejected to the machine in question.

    This is how I got some hackers to stop bothering me.



    Just some food for your thought,

    - J
    http://www.okteck.com/
    The best web hosting, reseller hosting and dedicated server packages!

  10. #10
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Quote Originally Posted by Vatoloco
    Thanks!

    One more question, is there a way to just disable it from checking ftp? I could care less if FTP is down for along time. I only use it a couple times a month and if it happens to me down at those times I could just restart it myself.
    To disable it, you'd delete the file from /etc/chkservd/ and then restart chkservd. However, cPanel upgrades will most likely recreate it.

    You might get away with disabling it in WHM > Service Manager > ftp daemon and just start and stop it manually. However, that may well have unforseen circumstances.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Brute Force attacks trying to login to an email account
    By tecnotronico in forum E-mail Discussions
    Replies: 3
    Last Post: 07-27-2011, 03:14 PM
  2. Brute Force attacks trying to login to an email account
    By rebouy in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-20-2011, 03:57 PM
  3. Brute Force Attacks
    By disappointed in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-31-2008, 12:39 PM
  4. How to prevent brute force attacks on Cpanel Login
    By baabaa in forum Data Protection
    Replies: 16
    Last Post: 02-23-2007, 06:56 AM
  5. Brute Force Attacks
    By RJH Hosting in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 12-11-2005, 06:16 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube