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.

how to export cPHulk blacklist

Discussion in 'Security' started by kazar, Apr 30, 2016.

Tags:
  1. kazar

    kazar Active Member

    Joined:
    May 18, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    NYC/Earth
    cPanel Access Level:
    Root Administrator
    Before cPHulk moved from mysql to whatever it uses now to log blacklisted IPs, I was able to run mysql cphulkd -e "select IP from blacklist;" | egrep "[0-9]" to output a list of blacklisted IPs/ranges. I have built up my blacklist over a period of years at this point and would really like to be able to preserve it for possible reuse after a server rebuild or in another account.

    Is there a new way to get the list out of WHM?

    tia,

    kazar
     
  2. kazar

    kazar Active Member

    Joined:
    May 18, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    NYC/Earth
    cPanel Access Level:
    Root Administrator
    update: I see now that cPHulk does still use mysql. The table is now called ip_lists with blacklisted addresses indicated by "2" in the "TYPE" column. There is no longer a column that stores a single value for IP range (such as 107.150.53.0/24) but instead there are STARTADDRESS and ENDADDRESS columns with the IP # in the format such as "00000000000000000000ffffd9aecaff"

    I have no idea how to print this in the shell in the same human-readable IP address range format that I use to input blacklisted addresses. I have opened a support ticket and will post back here when I receive a response.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  4. shoutandecho

    shoutandecho Registered

    Joined:
    Feb 16, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi! Is there a way to view, manipulate, and export the cPHulk list without using the command line? In the old system, I could just grab the list, use a text editor to manipulate the list, and then paste it back in. Now there doesn't seem to be a way to even view the entire list within the WHM interface at all.

    I did view the document Michael helpfully provided, but it doesn't seem to deal with manipulating or viewing the entire cPHulk blacklist. It looks like the web interface now only allows for entering and scrolling through a big list; you can't select all and export or select all and delete or search for a range, etc, and the command line can't do any sort of bulk editing either.

    Anyway, i was wondering if anything has changed because the new interface has take an enormous step back in terms of blacklist management.
     
    #4 shoutandecho, Jun 30, 2016
    Last edited: Jun 30, 2016
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    It's not possible to export or search the blacklist via WHM, but please continue to vote and add your feedback to the existing feature request located at:

    Show all IP addresses listed in cphulk

    Thank you.
     
  6. shoutandecho

    shoutandecho Registered

    Joined:
    Feb 16, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thank you for the quick response. I wonder why the change was made to take away that functionality? It was in previous versions...
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It happened when cPHulk was overhauled in cPanel version 11.48. You can find a reference to improvements to cPhulk in the cPanel version 11.48 release notes:

    11.48 Release Notes - 11.48 Documentation - cPanel Documentation

    Thank you.
     
Loading...

Share This Page