> I think the problem is that I haven't set up the jail properly. Can
> someone help me confirm the proper way to do this?
>
> I have the following in jail.conf:
>
> [changepass]
>
> enabled  = true
> filter   = changepass
> action   = sendmail-whois[name=CHNGPASS, [email protected],
> [email protected]]
> actionban = /etc/fail2ban/scripts/myscript_restart.sh
> maxretry = 1
> bantime  = 10
>
> I previously had the "actionban" in the actual filter, but just moved
> it here in hopes it's a more correct way of doing it. The actual
> filter just has the logpath and the failregex.

You can move these declarations all over the place, but I think the
accepted place for actionban is in the filter where you first had it.

> Is there anything more that I would need to make this work properly?

Post more logs? Kick off a different script to test? Do something else
in the actionban like touch a tmp file? Make the actionban grab the
exit code of your script?

------------------------------------------------------------------------------
_______________________________________________
Fail2ban-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to