Bulk add rules to HG Firewall?
I have a client who would like to block a whole region's worth of ip blocks. The HG Firewall Administration only allows you to add or remove 1 ip at a time, and I have 9,473 to add in. Where is the ip list actually stored on the server? Is it a human readable list that I can edit manually?
Thanks.
-Michael
-
Hello, Could you clarify if HG Firewall a third-party application? A Google search indicates this is possibly a product of HostGator. Have you contacted them for information about where that data is stored? You may want to consider using a firewall such as CSF if they are unable to provide you with that information. Thank you. 0 -
Ah, thank you, that makes sense. :) I was wondering why I had to allow apps not registered with AppConfig in order to see it, if they are setting up custom plugins for their clients they should really be registering them as well. It looks like it's possibly a front end to iptables, I will ask them about it. -Michael 0 -
The HG firewall is a very simple block/pass firewall. The black list is found at /etc/firewall/GLOBAL_DROP Make sure to restart the service after modifying the files to take effect (service firewall restart) I recently added the following command to my cpHULK for major offenders echo %remote_ip% >> /etc/firewall/GLOBAL_DROP; service firewall restart 0
Please sign in to leave a comment.
Comments
3 comments