The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Brute force via FTP

Discussion in 'General Discussion' started by bunciscakep, Feb 5, 2009.

  1. bunciscakep

    bunciscakep Registered

    Joined:
    May 8, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi All,

    This is my first post here.
    every night someone Brute force my box via FTP. i'm using pure-ftpd and when i contact cpanel support he said that pure-ftpd not support PAM module so it is not blocked in cphulkd and not blocked.

    is there any solution to stop it?
    i already use bfd but it seems not work i think it has wrong rule here the code :
    Code:
    # failed logins from a single address before ban
    # uncomment to override conf.bfd trig value
    # TRIG="10"
    
    # file must exist for rule to be active
    REQ="/usr/sbin/pure-ftpd"
    
    if [ -f "$REQ" ]; then
     LP="$KERNEL_LOG_PATHQ"
     TLOG_TF="pure-ftpd"
    
     ## PURE-FTPD
     ARG_VAL=`$TLOG_PATH $LP $TLOG_TF | sed -e 's/::ffff://' | grep -E '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | tr -d ':' | sed -n -e '/proftpd/s/.*USER \(.*\) no such user found from \([^ ]*\).*/\2:\1/p'`
    fi
    
    thanks for your response:)
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
Loading...

Share This Page