Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: mophilly on November 09, 2018, 11:39:46 PM

Title: invoking fail2ban from PHP page
Post by: mophilly on November 09, 2018, 11:39:46 PM
I would like managers at our company to be able to unban IP addresses without the aid of system tech. I built a simple PHP page for this. It works fine as long as I adjust permissions on selected fail2ban files for socket and pid. I notice the permissions are reset upon update/reboot. I realize that is a security safeguard.

My question is this: is there a way to invoke the fail2ban-client methods from the a web page in a safe fashion?