Skip to content

Commit 448df1a

Browse files
Jose LedesmaJose Ledesma
authored andcommitted
feat: link pgbouncer and postgresql ports in fail2ban jails
1 parent fb79d32 commit 448df1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ansible/files/fail2ban_config/jail-pgbouncer.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[pgbouncer]
22
enabled = true
3-
port = 6543
3+
port = 6543,5432 # ban both pgbouncer and postgresql
44
protocol = tcp
55
filter = pgbouncer
66
backend = systemd[journalflags=1]

ansible/files/fail2ban_config/jail-postgresql.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[postgresql]
22
enabled = true
3-
port = 5432
3+
port = 5432,6543 # ban both pgbouncer and postgresql
44
protocol = tcp
55
filter = postgresql
66
logpath = /var/log/postgresql/auth-failures.csv

0 commit comments

Comments
 (0)