Skip to content

Instantly share code, notes, and snippets.

@Abrynos
Created May 30, 2022 21:37
Show Gist options
  • Save Abrynos/827af357e700cc5dc2fa706ae7bb3aad to your computer and use it in GitHub Desktop.
Save Abrynos/827af357e700cc5dc2fa706ae7bb3aad to your computer and use it in GitHub Desktop.
fail2ban filter to catch authentication failures with postfixadmin via nginx logs
[Definition]
failregex = ^.*PostfixAdmin (admin|user) login failed .*ip_address: <HOST>.*$
(?i)^<HOST> -.*] \"(GET|POST|PUT|DELETE|HEAD) (/.*)?/\.git/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment