summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2016-02-12 20:57:16 +0100
committerGuilhem Moulin <guilhem@fripost.org>2016-02-12 20:57:16 +0100
commit5e66e9db4c19058769ab49b8064d6c3cedbd59aa (patch)
tree7ffa50845dd762c68475f9265522ec7deaae9177 /roles
parentfa8d2b668550259e6f78d16fc209c4da1a20b842 (diff)
s/ansible_ssh_/ansible_/
Diffstat (limited to 'roles')
-rw-r--r--roles/common/templates/etc/fail2ban/jail.local.j24
-rw-r--r--roles/common/templates/etc/iptables/services.j22
2 files changed, 3 insertions, 3 deletions
diff --git a/roles/common/templates/etc/fail2ban/jail.local.j2 b/roles/common/templates/etc/fail2ban/jail.local.j2
index a34cb70..f1c9833 100644
--- a/roles/common/templates/etc/fail2ban/jail.local.j2
+++ b/roles/common/templates/etc/fail2ban/jail.local.j2
@@ -23,7 +23,7 @@ ignoreip = 127.0.0.0/8 {{ groups.all | sort | join(' ') }}
[ssh]
enabled = true
-port = {{ ansible_ssh_port|default('22') }}
+port = {{ ansible_port|default('22') }}
filter = sshd
logpath = /var/log/auth.log
maxretry = 5
@@ -31,7 +31,7 @@ maxretry = 5
[ssh-ddos]
enabled = true
-port = {{ ansible_ssh_port|default('22') }}
+port = {{ ansible_port|default('22') }}
filter = sshd-ddos
logpath = /var/log/auth.log
maxretry = 2
diff --git a/roles/common/templates/etc/iptables/services.j2 b/roles/common/templates/etc/iptables/services.j2
index 8792771..303fa06 100644
--- a/roles/common/templates/etc/iptables/services.j2
+++ b/roles/common/templates/etc/iptables/services.j2
@@ -16,7 +16,7 @@ out udp 123 # NTP
out udp 123 123 # NTP
{% endif %}
-in tcp {{ ansible_ssh_port|default('22') }} # SSH
+in tcp {{ ansible_port|default('22') }} # SSH
{% if 'LDAP-provider' in group_names %}
in tcp 636 # LDAPS
{% elif 'MX' in group_names or 'lists' in group_names %}