Reflect last reflections 🔄
This commit is contained in:
parent
e87c09283d
commit
a26014399b
29
cdc.md
29
cdc.md
@ -5,19 +5,28 @@
|
|||||||
Avec un défaut à `/etc/reaction/reactiond.conf`
|
Avec un défaut à `/etc/reaction/reactiond.conf`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
actions:
|
definitions:
|
||||||
iptables:
|
- &iptablesban iptables -I reaction 1 -s <ip> -j block
|
||||||
|
- &iptablesunban iptables -D reaction 1 -s <ip> -j block
|
||||||
|
|
||||||
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:
|
||||||
cmd: journalctl -fu phpfpm-nextcloud.service
|
cmd: journalctl -fu phpfpm-nextcloud.service
|
||||||
actions:
|
filters:
|
||||||
- regex: '"message":"Login failed: .\+ (Remote IP: \(?<IP>[0-9a-fA-F.:]\+\))"'
|
failed-login:
|
||||||
# Can also be a list
|
regex:
|
||||||
cmd: iptables -I f2b-nextcloud 1 -s <ip> -j <blocktype>
|
- '"message":"Login failed: .\+ (Remote IP: <ip>)"'
|
||||||
|
retry: 3
|
||||||
|
retry-period: 1h
|
||||||
|
actions:
|
||||||
|
ban:
|
||||||
|
cmd: *iptablesban
|
||||||
|
unban:
|
||||||
|
cmd: *iptablesunban
|
||||||
|
after: 1h
|
||||||
```
|
```
|
||||||
|
|
||||||
reactionc: le client
|
reactionc: le client
|
||||||
|
Loading…
Reference in New Issue
Block a user