* Removed section titles
[project/luci.git] / applications / luci-fw / luasrc / model / cbi / luci_fw / portfw.lua
1 -- ToDo: Translate, Add descriptions and help texts
2 require("luci.sys")
3 m = Map("luci_fw", "Portweiterleitung", [[Portweiterleitungen ermöglichen es interne
4 Netzwerkdienste von einem anderen externen Netzwerk aus erreichbar zu machen.]])
5
6 s = m:section(TypedSection, "portfw", "")
7 s.template  = "cbi/tblsection"
8 s.addremove = true
9 s.anonymous = true
10
11 iface = s:option(ListValue, "iface", "Schnittstelle", "Externe Schnittstelle")
12 iface.default = "wan"
13 luci.model.uci.foreach("network", "interface",
14         function (section)
15                 if section[".name"] ~= "loopback" then
16                         iface:value(section[".name"])
17                 end
18         end)
19
20 proto = s:option(ListValue, "proto", "Protokoll")
21 proto:value("tcp", "TCP")
22 proto:value("udp", "UDP")
23 proto:value("tcpudp", "TCP + UDP")
24
25 dport = s:option(Value, "dport", "Externer Port", "Port[:Endport]")
26
27 to = s:option(Value, "to", "Interne Adresse", "IP-Adresse[:Zielport[-Zielendport]]")
28
29 return m