s:option(Value, "leasetime", "Freigabezeit", "h")
s = m:section(TypedSection, "iface", "Schnittstellen")
+s.template = "cbi/tblsection"
s.addremove = true
s.anonymous = true
-iface = s:option(ListValue, "network", "Schnittstelle")
-for k, v in pairs(luci.model.uci.sections("network")) do
- if v[".type"] == "interface" and k ~= "loopback" then
- iface:value(k)
- end
-end
+zone = s:option(ListValue, "zone", "Firewallzone")
+luci.model.uci.foreach("firewall", "zone",
+ function (section)
+ zone:value(section.name)
+ end)
+
+iface = s:option(ListValue, "network", "Netzwerk")
+luci.model.uci.foreach("network", "interface",
+ function (section)
+ if section[".name"] ~= "loopback" then
+ iface:value(section[".name"])
+ end
+ end)
+
+luci.model.uci.foreach("network", "alias",
+ function (section)
+ iface:value(section[".name"])
+ end)
s = m:section(TypedSection, "whitelist", "Automatische Freigabe")
+s.template = "cbi/tblsection"
s.addremove = true
s.anonymous = true
s:option(Value, "mac", "MAC-Adresse")
s = m:section(TypedSection, "blacklist", "Automatische Sperrung")
+s.template = "cbi/tblsection"
s.addremove = true
s.anonymous = true
s:option(Value, "mac", "MAC-Adresse")