Index: modules/fail2ban/templates/jail.erb |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/modules/fail2ban/templates/jail.erb |
@@ -0,0 +1,12 @@ |
+<% @jail_config.each do |name, config| -%> |
+<% if !config['logpath'].empty? -%> |
+[<%= name %>] |
+ |
+enabled = <%= config['enabled'] ||= true %> |
+port = <%= config['port'] ||= 'all' %> |
+filter = <%= name %> |
+logpath = <%= config['logpath'] %> |
+maxretry = <%= config['maxretry'] ||= 6 %> |
+bantime = <%= config['bantime']||= 3600 %> |
mathias
2016/11/24 16:08:48
The key-by-key assignment is limiting the user/con
f.lopez
2016/11/25 15:13:49
I agree but I couldn't find a way to make this hap
|
+<% end -%> |
+<% end -%> |