<% local fw = require "luci.model.firewall".init() local wz = fw:get_zone("wan") local lz = fw:get_zone("lan") local zones = fw:get_zones() %>
<% if wz then %>
<%:Open ports on router%>:
<%:Name%>
<%:Protocol%>
<%:External port%>
<% end %> <% if #zones > 1 then %>

<%:New forward rule%>:
<%:Name%>
<%:Source zone%>
<%:Destination zone%>
<% else %> <% end %> <% if wz then %> <% end %>