File tree 4 files changed +12
-3
lines changed
4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -3,5 +3,6 @@ enabled = true
3
3
port = 5432
4
4
protocol = tcp
5
5
filter = postgresql
6
- logpath = /var/log/postgresql/postgresql .csv
6
+ logpath = /var/log/postgresql/auth-failures .csv
7
7
maxretry = 3
8
+ ignoreip = 192.168.0.0/16 172.17.1.0/20
Original file line number Diff line number Diff line change 1
1
[Unit]
2
2
Description=Kong server
3
3
After=postgrest.service gotrue.service adminapi.service
4
- Wants=postgrest.service gotrue.service adminapi.service
5
4
6
5
[Service]
7
6
Type=forking
Original file line number Diff line number Diff line change 17
17
dest : /etc/fail2ban/jail.local
18
18
19
19
# postgresql
20
+ - name : create watch files
21
+ become : yes
22
+ become_user : postgres
23
+ shell :
24
+ cmd : |
25
+ chmod g+w /var/log/postgresql
26
+ touch /var/log/postgresql/auth-failures.csv
27
+ chmod g+w /var/log/postgresql/auth-failures.csv
28
+
20
29
- name : import jail.d/postgresql.conf
21
30
template :
22
31
src : files/fail2ban_config/jail-postgresql.conf.j2
Original file line number Diff line number Diff line change 1
- postgres-version = " 15.1.0.57 "
1
+ postgres-version = " 15.1.0.58-rc0.services "
You can’t perform that action at this time.
0 commit comments