pez-infra/ansible/roles/firewall_alpine/templates/alpine-ssh.conf.j2
Rasmus "Pez" Wejlgaard a7a71e4f87
capture nuremberg-a firewall rules in pez-infra (#15)
Add firewall_alpine role for Alpine hosts with iptables persistence
and fail2ban SSH jails. Wire it into nuremberg-a's deploy stage.

Mail ports are already exposed via Docker port mappings in the
poste-io docker-compose — this captures the surrounding iptables
and fail2ban config that was previously undocumented.

Closes PESO-96
2026-03-29 14:40:10 +01:00

16 lines
356 B
Django/Jinja

# {{ ansible_managed }}
# fail2ban SSH jails for Alpine Linux
[sshd]
enabled = true
filter = alpine-sshd
port = ssh
logpath = /var/log/messages
maxretry = {{ firewall_alpine_fail2ban_maxretry }}
[sshd-ddos]
enabled = true
filter = alpine-sshd-ddos
port = ssh
logpath = /var/log/messages
maxretry = {{ firewall_alpine_fail2ban_maxretry }}