Script help with CSF - how to temporarily unblock IPs

Posted by sharmaine1111, 04-22-2009, 11:12 PM
Hello I'm trying to create a script or WHM plugin with permissions where resellers will have an ability to temporarily allow an IP address (mirror CSF's "ALLOW IP" function). I am not sure though how to do this. I have checked with CSF if its possible or if i can hire them to do such script but they won't help. Can someone from this forum help me? Any help is greatly appreciated. Thank you very much in advance.

Posted by DigitalLinx, 04-22-2009, 11:36 PM
I'm not sure about WHM, but you can add your resellers to the sudoers lists to be able to execute csf and iptables, however it's dangerous and I wouldn't recommend it since they can basically block the entire server. Another solution would be to setup a custom php page that accepts the IPs to be temporary allowed and saves then in a file then have a cron script running as root that does csf -a $IP, other than that I'm out of ideas.

Byla tato odpověď nápomocná?

 Tisknout tento článek

Také čtěte

Domain names diferent servers.

Posted by shakybaky, 06-26-2008, 02:34 PMhello i have two nix vps's One of the vps is setup and...

problem when set up dhcp server

Posted by tinhnho, 07-17-2007, 04:43 PMI follow instruction from redhat to setup my Centos acts...

File Server Setup With Nginx...how do I choose the config for the server?

Posted by azn_romeo_4u, 04-22-2009, 02:03 PMSo I just want to use a server for file sharing, it...

Need to Delete a Cronjob via SSH

Posted by epic1231, 03-23-2007, 11:12 AMI have a cronjob that is still entered in my server, but...

Set up file that will be called up in cron

Posted by ninak, 03-09-2010, 10:10 AMI am kind of embarrassed asking this question but I hope...