Last active
March 28, 2025 03:19
-
-
Save mpetroff/4482c42020b6cb39b486dea6bf337420 to your computer and use it in GitHub Desktop.
JupyterHub PAM Authentication Fail2ban Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/fail2ban/jail.local | |
[jupyterhub] | |
enabled = true | |
port = 443 | |
filter = jupyterhub | |
backend = systemd | |
maxretry = 6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/fail2ban/filter.d/jupyterhub.conf | |
[Definition] | |
failregex = PAM Authentication failed \(.*@<HOST>\) | |
404 (GET|HEAD|POST|PUT|DELETE) .* \(@<HOST>\) .*ms | |
ignoreregex = '' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment