2 LuCI - Lua Configuration Interface
4 Copyright 2008 Steven Barth <steven@midlink.org>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
15 m = Map("luci_fw", translate("fw_portfw", "Portweiterleitung"), translate("fw_portfw1"))
17 s = m:section(TypedSection, "portfw", "")
18 s.template = "cbi/tblsection"
22 iface = s:option(ListValue, "iface", translate("interface", "Schnittstelle"))
24 luci.model.uci.foreach("network", "interface",
26 if section[".name"] ~= "loopback" then
27 iface:value(section[".name"])
31 proto = s:option(ListValue, "proto", translate("protocol", "Protokoll"))
32 proto:value("tcp", "TCP")
33 proto:value("udp", "UDP")
34 proto:value("tcpudp", "TCP + UDP")
36 dport = s:option(Value, "dport")
38 to = s:option(Value, "to")