This is a custom action for fail2ban
It publishes bans and unbans on a MQTT topic
To use it you need to:
[sshd] enabled = true action = mosquitto.py
The action supports optional parameters, for example [sshd] enabled = true action = mosquitto.py[host='myhost', port=8080, topic='mytopic']