* Fixed local Makefiles
[project/luci.git] / applications / luci-fw / src / model / cbi / admin_network / portfw.lua
1 -- ToDo: Translate, Add descriptions and help texts
2 require("ffluci.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.addremove = true
8 s.anonymous = true
9
10 iface = s:option(ListValue, "iface", "Externes Interface")
11 iface:value("")
12 for k,v in pairs(ffluci.sys.net.devices()) do
13         iface:value(v)
14 end
15
16 proto = s:option(ListValue, "proto", "Protokoll")
17 proto:value("tcp", "TCP")
18 proto:value("udp", "UDP")
19 proto:value("tcpudp", "TCP + UDP")
20
21 dport = s:option(Value, "dport", "Externer Port", "Port[:Endport]")
22
23 to = s:option(Value, "to", "Interne Adresse", "IP-Adresse[:Zielport[-Zielendport]]")
24
25 return m