Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 405 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 405 Bytes

This is a custom action for fail2ban

It publishes bans and unbans on a MQTT topic

To use it you need to:

  • copy this action into your actions.d directory
  • pip install paho-mqtt
  • configure a jail, for example:

[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']