{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "ssh root@prod.karlkratz.com \"echo '=== fail2ban ===' && for jail in \\$(fail2ban-client status | grep 'Jail list' | sed 's\/.*:\/\/;s\/,\/ \/g'); do result=\\$(fail2ban-client set \\$jail unbanip 145.224.72.253 2>&1); if [ \\\"\\$result\\\" = \\\"1\\\" ]; then echo \\\"Entbannt aus: \\$jail\\\"; fi; done && echo '=== nftables ===' && (nft list ruleset 2>&1 | grep 145.224.72.253 | grep -v Warning || echo 'Nicht in nftables') && echo '=== ipset ===' && (ipset test ssh-blacklist-permanent 145.224.72.253 2>&1)\" 2>&1",
"timeout": 30000,
"description": "Unban IP from all jails and check nftables\/ipset"
}
}