ronniemiller

Registered
Apr 13, 2008
1
0
51
Hello,

I'm having a problem with the iptables on our server. Either cpanel or whm appears to be updating iptables every day with a lot of IPs, including my own. Effectively blocking me from my own server.

Where do I go to take my IP address out of the list that it updates from? Otherwise, how can I prevent it from blocking my ip address over and over again?


Thanks
 
Last edited:

RSCChris

Active Member
Sep 15, 2004
26
0
151
Are you using a firewall to control iptables? If not, I recommend you set one up, specifically ConfigServer. The problem though is probably one of cpanel's security features that's detecting some weird activity from your IP and blocking it. To wipe out all of the bad rules, go into SSH and do iptables --flush, then setup the firewall. As for the IPs on the list, they're being stored in the /etc/hosts.deny file, so just go in there to remove your IP. To prevent the IP from being blocked, add it to the /etc/hosts.allow file.