70a174907fb3210a3a49bad8b2002b5175bc5961
[project/luci.git] / module / admin-core / 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")
4
5 s = m:section(TypedSection, "portfw")
6 s.addremove = true
7 s.anonymous = true
8
9 iface = s:option(ListValue, "iface", "Externes Interface")
10 iface:value("")
11 for k,v in pairs(ffluci.sys.net.devices()) do
12         iface:value(v)
13 end
14
15 proto = s:option(ListValue, "proto", "Protokoll")
16 proto:value("tcp", "TCP")
17 proto:value("udp", "UDP")
18 proto:value("tcpudp", "TCP+UDP")
19
20 dport = s:option(Value, "dport", "Externer Port", "Port[:Endport]")
21
22 to = s:option(Value, "to", "Interne Adresse", "IP-Adresse[:Zielport[-Zielendport]]")
23
24 return m