* Fixed haserl-lua Makefile
[project/luci.git] / src / ffluci / model / cbi / admin_network / firewall.lua
1 -- ToDo: Translate, Add descriptions and help texts
2 m = Map("luci_fw", "Firewall")
3
4 s = m:section(TypedSection, "rule")
5 s.addremove = true
6
7 chain = s:option(ListValue, "chain", "Kette")
8 chain:value("forward", "Forward")
9 chain:value("input", "Input")
10 chain:value("output", "Output")
11 chain:value("prerouting", "Prerouting")
12 chain:value("postrouting", "Postrouting")
13
14 s:option(Value, "iface", "Eingangsschnittstelle").optional = true
15 s:option(Value, "oface", "Ausgangsschnittstelle").optional = true
16 s:option(Value, "proto", "Protokoll").optional = true
17 s:option(Value, "source", "Quelladresse").optional = true
18 s:option(Value, "destination", "Zieladresse").optional = true
19 s:option(Value, "sport", "Quellports").optional = true
20 s:option(Value, "dport", "Zielports").optional = true
21 s:option(Value, "to", "Neues Ziel").optional = true
22
23 state = s:option(MultiValue, "state", "Status")
24 state.optional  = true
25 state.delimiter = ","
26 state:value("NEW", "neu")
27 state:value("ESTABLISHED", "etabliert")
28 state:value("RELATED", "zugehörig")
29 state:value("INVALID", "ungültig")
30
31 s:option(Value, "jump", "Aktion", "ACCEPT, REJECT, DROP, MASQUERADE, DNAT, SNAT, ...").optional = true
32
33
34 add = s:option(Value, "command", "Befehl")
35 add.size = 50
36
37 return m