Skip to content
Snippets Groups Projects
Unverified Commit 65873af2 authored by Luke Murphy's avatar Luke Murphy
Browse files

Allow to customise SSH port

Closes #3.
parent 305db0e0
No related branches found
No related tags found
1 merge request!3Configurable SSH port and Nginx filters
......@@ -6,6 +6,7 @@ fail2ban_whitelist:
- "127.0.0.1"
- "81.95.52.0/24"
fail2ban_ssh: true
fail2ban_ssh_port: 22
# https://docs.wp-fail2ban.com/en/4.2/configuration/fail2ban.html
fail2ban_wordpress: true
# https://www.drupal.org/project/fail2ban
......
......@@ -12,6 +12,7 @@ logpath = /var/log/auth.log
{% if fail2ban_ssh == True %}
[sshd]
enabled = true
port = {{ fail2ban_ssh_port }}
{% endif %}
{% if fail2ban_wordpress == True %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment