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.

Je li Vam ovaj odgovor pomogao?

 Ispiši članak

Također pročitajte

Drop-down header (yahoo like?)

Posted by coume, 03-13-2010, 07:40 AMHello, I struggled to find the right title for the thread...

Sanitize issues i think

Posted by rumrunner439, 09-22-2008, 12:22 AMOk Im over having to rename everything in my computer...

Going to start hosting...

Posted by Glexicon, 09-13-2001, 01:23 AMI would be getting rackshack.net servers to start my...

I need help faster! - Looking again

Posted by johnpalm, 09-06-2002, 12:18 PMOver the past 6 months I had a number of reseller account...

Load Balancing 2 Web servers and 2 MySQL Servers

Posted by YYamagishi, 03-28-2008, 04:02 AMHi, I was wondering if it is possible to cluster 2 web...