Minor fixes and fix grep log order

This commit is contained in:
Michael Reber
2025-01-30 13:44:39 +01:00
parent 9247ad2dd5
commit b88023dd8d
2 changed files with 17 additions and 8 deletions

View File

@@ -296,7 +296,7 @@ actionban = /usr/bin/curl -X POST http://127.0.0.1:8080/api/ban \
--arg hostname '<fq-hostname>' \
--arg failures '<failures>' \
--arg whois "$(whois <ip> || echo 'missing whois program')" \
--arg logs "$(grep <grepopts> -wF <ip> <logpath> | <greplimit>)" \
--arg logs "$(tac <logpath> | grep <grepopts> -wF <ip>)" \
'{ip: $ip, jail: $jail, hostname: $hostname, failures: $failures, whois: $whois, logs: $logs}')"
[Init]