uniform cdc

This commit is contained in:
ppom 2023-03-19 23:09:59 +01:00
parent 04e85a78ea
commit e134e2c9ce

5
cdc.md
View File

@ -10,13 +10,14 @@ actions:
regexes: regexes:
IP: '(([0-9]{1,3}\.){3}[0-9]{1,3})|([0-9a-fA-F:]{2,90})' IP: '(([0-9]{1,3}\.){3}[0-9]{1,3})|([0-9a-fA-F:]{2,90})'
streams: streams:
nextcloud: nextcloud:
command: journalctl -fu phpfpm-nextcloud.service cmd: journalctl -fu phpfpm-nextcloud.service
actions: actions:
- regex: '"message":"Login failed: .\+ (Remote IP: \(?<IP>[0-9a-fA-F.:]\+\))"' - regex: '"message":"Login failed: .\+ (Remote IP: \(?<IP>[0-9a-fA-F.:]\+\))"'
# Can also be a list # Can also be a list
do: iptables -I f2b-nextcloud 1 -s <ip> -j <blocktype> cmd: iptables -I f2b-nextcloud 1 -s <ip> -j <blocktype>
``` ```
reactionc: le client reactionc: le client