2023-03-23 21:14:53 +01:00
|
|
|
---
|
|
|
|
definitions:
|
|
|
|
- &iptablesban iptables -I reaction 1 -s <ip> -j block
|
|
|
|
- &iptablesunban iptables -D reaction 1 -s <ip> -j block
|
|
|
|
|
2023-03-24 17:36:41 +01:00
|
|
|
patterns:
|
|
|
|
ip: '(([0-9]{1,3}\.){3}[0-9]{1,3})|([0-9a-fA-F:]{2,90})'
|
2023-03-23 21:14:53 +01:00
|
|
|
|
|
|
|
streams:
|
2023-03-24 00:27:51 +01:00
|
|
|
tailDown:
|
2023-03-25 18:04:44 +01:00
|
|
|
cmd: [ "tail", "/home/ao/DOWN" ]
|
2023-03-23 21:14:53 +01:00
|
|
|
filters:
|
2023-03-24 17:36:41 +01:00
|
|
|
findIP:
|
2023-03-24 00:27:51 +01:00
|
|
|
regex:
|
2023-03-24 17:36:41 +01:00
|
|
|
- found <ip>
|
|
|
|
# retry: 1
|
2023-03-24 00:27:51 +01:00
|
|
|
retry-period: 1s
|
2023-03-23 21:14:53 +01:00
|
|
|
actions:
|
2023-03-24 00:27:51 +01:00
|
|
|
damn:
|
2023-03-24 17:36:41 +01:00
|
|
|
cmd: [ "echo", "<ip>" ]
|
2023-03-24 00:27:51 +01:00
|
|
|
sleepdamn:
|
2023-03-24 17:36:41 +01:00
|
|
|
cmd: [ "echo", "sleep", "<ip>" ]
|
|
|
|
after: 1s
|