Reputation: 74
i'm trying to add ip to fail2ban banlist instantly when detect differs types of ungrateful visitors, i'm trying do this from php script running next command with 'shell' or 'shell_exec':
exec('fail2ban-client -vvv set ssh-iptables banip 123.123.123.123');
(I would like use native detections of fail2ban and additionally add or remove bans manually from my admin zone in my own website.)
But, this method doesn't work...
Any idea? Thanks!
Upvotes: 1
Views: 1674
Reputation: 5316
Hi please try with full path of fail2ban-client you can get it by entering
which fail2ban-client
at shell.
Upvotes: 1