Koozali.org: home of the SME Server

invoking fail2ban from PHP page

Offline Mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
invoking fail2ban from PHP page
« 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?
- Mark