Hello Where is the file that keep the info for iptables so i can view what ip's are blocked so i can edit it and unban some of them that i want? My server is using cpanel and latest Centos x64. Thank you
You can view your current iptables rules by using this command : /sbin/iptables -L Code (markup): - Dynashox -
Thanks I am a total noob and i am using wincsp to view and edit files So i must look on /sbin/iptables file and edit it by removing the line that keeps the ip info that i want to unban? Do i have to run any command after that to restart it or something when i unban the ip's that i want? I know it is not the best way to do it but it is more easy for me than the console solution.
There is a command line that you must run to allow or deny an IP address. You should restart the iptables service if you make any change to it. - Dynashox -
I want to remove the csf as it is resource eater ... Yes and the command add a line on the /sbin/iptables a line like: drp this ip bla bla 123.xxx.xxx.xxx So i can delete this line and the ban is gone and if i want to add a new one i can use the same line on that file with another ip or is not possible like this? What command i must use?
You can block and unblock as many IP address as you want. Refer to iptables man page how to do this. /etc/init.d/iptables restart
you can do it with CSF or refer the man page for the iptable utilities and proceed as per the instruction given.