]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/fail2ban/templates/default/jail.erb
Tilecache: Whitelist SoTM-EU-2014 NAT IP
[chef.git] / cookbooks / fail2ban / templates / default / jail.erb
index fc0f8bdc8befe9ab92434d1d131adb2d3e48ae10..20010d1b217854e12304a2983fa729811f45edb1 100644 (file)
@@ -4,3 +4,17 @@
 destemail = admins@openstreetmap.org
 banaction = shorewall
 bantime = 14400
+<% @jails.each do |jail| -%>
+
+[<%= jail[:name] %>]
+enabled = true
+<% if jail[:protocol] -%>
+protocol = <%= jail[:protocol] %>
+<% end -%>
+port = <%= jail[:port] %>
+filter = <%= jail[:filter] %>
+logpath = <%= jail[:logpath] %>
+<% if jail[:maxretry] -%>
+maxretry = <%= jail[:maxretry] %>
+<% end -%>
+<% end -%>