From 04e85a78ea871d71bca0cfeea3398796a83419d8 Mon Sep 17 00:00:00 2001 From: ppom <> Date: Sat, 18 Mar 2023 21:39:01 +0100 Subject: [PATCH] initial commit --- cdc.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 cdc.md diff --git a/cdc.md b/cdc.md new file mode 100644 index 0000000..ed4148b --- /dev/null +++ b/cdc.md @@ -0,0 +1,22 @@ +# Serveur + +`reactiond ` + +Avec un défaut à `/etc/reaction/reactiond.conf` + +```yaml +actions: + iptables: + +regexes: + IP: '(([0-9]{1,3}\.){3}[0-9]{1,3})|([0-9a-fA-F:]{2,90})' +streams: + nextcloud: + command: journalctl -fu phpfpm-nextcloud.service + actions: + - regex: '"message":"Login failed: .\+ (Remote IP: \(?[0-9a-fA-F.:]\+\))"' + # Can also be a list + do: iptables -I f2b-nextcloud 1 -s -j +``` + +reactionc: le client