+<% @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 -%>