Skip to navigation
Fail2ban settings for postgresql v15 to block failed access
16.06.23
# 2 Settings on for fail2ban on postgresql v.15 to block failed access to the database used https://www.regextester.com/94338 to craft the express ## /etc/fail2ban/jail.d/postgresql.conf ```yaml [postgresql] enabled = true filter = postgresql logpath = /var/log/postgresql/postgresql-15-main.log maxretry = 3 bantime = 600 port = 5432 ``` ## /etc/fail2ban/filter.d/postgresql.conf ```yaml [Definition] failregex = ^.*FATAL:.*\"
\", user .*$ ignoreregex = ```
https://www.regextester.com/94338
Reply
Anonymous
Information Epoch 1732428587
Think parallel.
Home
Notebook
Contact us