commit 04e85a78ea871d71bca0cfeea3398796a83419d8 Author: ppom <> Date: Sat Mar 18 21:39:01 2023 +0100 initial commit 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