1 -- ToDo: Translate, Add descriptions and help texts
2 m = Map("luci_fw", "Firewall")
4 s = m:section(TypedSection, "rule")
8 chain = s:option(ListValue, "chain", "Kette")
9 chain:value("forward", "Forward")
10 chain:value("input", "Input")
11 chain:value("output", "Output")
12 chain:value("prerouting", "Prerouting")
13 chain:value("postrouting", "Postrouting")
15 s:option(Value, "iface", "Eingangsschnittstelle").optional = true
16 s:option(Value, "oface", "Ausgangsschnittstelle").optional = true
18 proto = s:option(ListValue, "proto", "Protokoll")
21 proto:value("tcp", "TCP")
22 proto:value("udp", "UDP")
24 s:option(Value, "source", "Quelladresse").optional = true
25 s:option(Value, "destination", "Zieladresse").optional = true
27 sport = s:option(Value, "sport", "Quellport")
29 sport:depends("proto", "tcp")
30 sport:depends("proto", "udp")
32 dport = s:option(Value, "dport", "Zielport")
34 dport:depends("proto", "tcp")
35 dport:depends("proto", "udp")
37 tosrc = s:option(Value, "tosrc", "Neue Quelladresse [SNAT]")
39 tosrc:depends("jump", "SNAT")
41 tosrc = s:option(Value, "todest", "Neue Zieladresse [DNAT]")
43 tosrc:depends("jump", "DNAT")
45 jump = s:option(ListValue, "jump", "Aktion")
48 jump:value("ACCEPT", "annehmen (ACCEPT)")
49 jump:value("REJECT", "zurückweisen (REJECT)")
50 jump:value("DROP", "verwerfen (DROP)")
51 jump:value("LOG", "protokollieren (LOG)")
52 jump:value("DNAT", "Ziel umschreiben (DNAT) [nur Prerouting]")
53 jump:value("MASQUERADE", "maskieren (MASQUERADE) [nur Postrouting]")
54 jump:value("SNAT", "Quelle umschreiben (SNAT) [nur Postrouting]")
57 add = s:option(Value, "command", "Eigener Befehl")