SOLVED Remove IP Address from cPHulk Whitelist via cli/terminal?

Operating System & Version
CentOS v7.9
cPanel & WHM Version
106.0.13

eggybot21

Member
Jan 25, 2020
15
3
3
Manila
cPanel Access Level
Root Administrator
Hi Guys,

Is there any command line on how I can remove the IP address in the Whitelist of cPHulk

I can only see the Add command
"/usr/local/cpanel/scripts/cphulkdwhitelist 192.0.2.0"
but I cannot see any additional parameters to remove the IP, is the command for remove/delete for whitelist available?

TIA/regards,
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,163
2,410
363
cPanel Access Level
Root Administrator
Hey there! There is an equivalent blacklist command at /usr/local/cpanel/scripts/cphulkdblacklist that you can run. If you run the blacklist command on an IP already in the whitelist, it does remove the IP from the whitelist as well.
 

eggybot21

Member
Jan 25, 2020
15
3
3
Manila
cPanel Access Level
Root Administrator
I'm looking for this command due to I want to be able to remove the IP address added by Github for the firewall. My Github actions send current IP address to the database and added the ip address in whitelist via shell command. Currently, my cphulk blocks all Countries which is why I'm adding it on the whitelist. But Github has tons of IP addresses use in Github actions and currently, I want to remove the IP address once the action process is completed.

If you can add it on the future release for cphulk then that is good, but for now I will remove it manually via whm panel. Also, I cannot added on the blacklist command due to I'm using it for Github actions.

Thanks,
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,163
2,410
363
cPanel Access Level
Root Administrator
I went ahead and created this feature request and I'll bring it up with the team next week:


Feel free to comment there with any additional thoughts you may have.
 
  • Like
Reactions: eggybot21