Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Nov 2008
    Posts
    167

    Default Preventing annoying/lame hack attempts

    Hi,

    Every now and then I get a logwatch full of failed logins attempts, eg.

    LOGIN FAILED, user=admin, ip=[::ffff:213.92.11.165]: 39 Time(s)

    This time the list was about 300 usernames long, and consisted of about 2200 failed logins in total.

    Isn't this something that cpHulk should have blocked after the first set of failures? I'm a bit confused, as cpHulk seems to be a bit hit and miss.

    I also run APF firewall, but i expect getting this idiot's IP into the deny rules list other than vi'ing it in manually is going to involved all kinds of ninja level scripting.

    Any ideas? Thanks.

  2. #2
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    You should try the ConfigServer firewall from here
    ConfigServer Security & Firewall

  3. #3
    Member
    Join Date
    Nov 2008
    Posts
    167

    Default

    OK, I give in... this isn't the first time someone has sai try CSF...

    Although I'm reasonably comfortable tooling around my servers, doing routine admin and maintenance, checking logs etc, I'm not a linux ninja by any means...

    Installing APF, although uneventful and straightforward did raise the old blood pressure a bit, and I was somewhat relieved to find it all worked after the install. Unfortunately I don't now have a spare box to install CSF on, and both of mine are production machines with a few dozen users on each.

    Obviously I don't need to bugger thing up by trying to switch firewall applications.

    Has anyone else out there removed APF on a stock Cpanel install, and installed CSF in it's place? Any pointers/pitfalls? Is CSF as well suported/bug free as APF appears to be?

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by santrix View Post
    Hi,

    Every now and then I get a logwatch full of failed logins attempts, eg.

    LOGIN FAILED, user=admin, ip=[::ffff:213.92.11.165]: 39 Time(s)

    This time the list was about 300 usernames long, and consisted of about 2200 failed logins in total.

    Isn't this something that cpHulk should have blocked after the first set of failures? I'm a bit confused, as cpHulk seems to be a bit hit and miss.

    I also run APF firewall, but i expect getting this idiot's IP into the deny rules list other than vi'ing it in manually is going to involved all kinds of ninja level scripting.

    Any ideas? Thanks.
    At this time cpHulk only works on services that use TCPWrappers. At this time, not all services cPanel/WHM relies upon use TCPWrappers.

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,914

    Default

    I would assume this is your SSH port
    LOGIN FAILED, user=admin, ip=[::ffff:213.92.11.165]: 39 Time(s)
    Change your SSH port to a unused port
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

  6. #6
    Member
    Join Date
    Nov 2008
    Posts
    167

    Default

    I already did... it's not on 22! That was one of the first things I do to any new box. I guess they are persistent little buggers.

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,914

    Default

    then what are they trying to brute?
    install BFD with apf
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

  8. #8
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by santrix View Post
    I already did... it's not on 22! That was one of the first things I do to any new box. I guess they are persistent little buggers.
    I can take care of this for you beyond your wildest dreams!

    However, in the meantime ...

    Cpanel servers have "portsentry" but it is not configured correctly
    and is rendered basically useless by default. If setup correctly,
    it becomes a very powerful tool for blocking port scans trying
    to locate where you moved your SSH service and can react
    much more rapidly than LFD or other services for that.

    CSF / LFD is a "must have" for keeping up with primary activity and
    I would have that installed, configured correctly, and running along side
    other measures in place such as portsentry, rootkit scanners, & log monitors.

    Obviously as already previously discussed in this thread,
    SSH should not be on the default port 22, should be protocol 2,
    and preferably not direct root access. In some cases, users
    cannot use certificates for login but if you are able to do that,
    I recommend shutting down password authentication as that
    will complete eliminate any brute force type possibilities although
    a sufficiently long, random, and non-dictionary password will
    suffice for most instances too.

    The biggest thing to be concerned about is not that anyone is "trying"
    to break in to your server but rather "are they successful"?

    If your defenses are setup correctly, any hacking attempts on your
    server should be able to be put down to a rest almost instantaneously.

Similar Threads & Tags
Similar threads

  1. Preventing annoying/lame hack attempts
    By santrix in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 09-05-2009, 12:52 PM
  2. Annoying Email Login attempts using Google IP Addresses
    By madamsplash in forum E-mail Discussions
    Replies: 2
    Last Post: 03-17-2009, 11:20 PM
  3. Hack attempts to DNS?
    By jols in forum Security
    Replies: 5
    Last Post: 07-18-2008, 03:36 PM
  4. Hack attempts to DNS?
    By jols in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-18-2008, 03:36 PM
  5. Hack attempts from cPanel
    By dacanbe in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-14-2006, 10:02 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube