X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/4781c23a88bfec6798e705486fc21a8923a79096..1ce4b4b8855822a61231b92e1bea70e606d7316d:/cookbooks/fail2ban/templates/default/jail.erb?ds=sidebyside diff --git a/cookbooks/fail2ban/templates/default/jail.erb b/cookbooks/fail2ban/templates/default/jail.erb index 08fb7ed16..6a7e377d8 100644 --- a/cookbooks/fail2ban/templates/default/jail.erb +++ b/cookbooks/fail2ban/templates/default/jail.erb @@ -5,9 +5,24 @@ enabled = true <% if @protocol -%> protocol = <%= @protocol %> <% end -%> +<% if @ports -%> port = <%= @ports.join(",") %> +<% end -%> +<% if @filter -%> filter = <%= @filter %> +<% end -%> +<% if @logpath -%> logpath = <%= @logpath %> +<% end -%> +<% if @bantime -%> +bantime = <%= @bantime %> +<% end -%> +<% if @findtime -%> +findtime = <%= @findtime %> +<% end -%> <% if @maxretry -%> maxretry = <%= @maxretry %> <% end -%> +<% if @ignoreips -%> +ignoreip = <%= @ignoreips.sort.join(" ") %> +<% end -%>