X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=applications%2Fluci-fw%2Fluasrc%2Fmodel%2Fcbi%2Fluci_fw%2Frrule.lua;h=63e014444b62a95ea39e8dd6c510344230c86876;hb=03c4a61b2ad1267bb0b37cc74badb7e6c44c6867;hp=2800cec72ba9729426f42181d50d79966fdf77d2;hpb=08ceafc2e965cef633ea918d6561e30cadf8ca95;p=oweals%2Fluci.git diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua index 2800cec72..63e014444 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua @@ -14,7 +14,9 @@ $Id$ require("luci.sys") arg[1] = arg[1] or "" -m = Map("firewall", translate("Traffic Redirection"), translate("Traffic redirection allows you to change the destination address of forwarded packets.")) +m = Map("firewall", translate("Traffic Redirection"), + translate("Traffic redirection allows you to change the " .. + "destination address of forwarded packets.")) s = m:section(NamedSection, arg[1], "redirect", "") @@ -29,17 +31,19 @@ name = s:option(Value, "_name", translate("Name")) name.rmempty = true name.size = 10 -iface = s:option(ListValue, "src", translate("Zone")) +iface = s:option(ListValue, "src", translate("Source zone")) iface.default = "wan" luci.model.uci.cursor():foreach("firewall", "zone", function (section) iface:value(section.name) end) -s:option(Value, "src_ip", translate("Source address")).optional = true -s:option(Value, "src_mac", translate("Source MAC")).optional = true +s:option(Value, "src_ip", translate("Source IP address")).optional = true +s:option(Value, "src_mac", translate("Source MAC-address")).optional = true -sport = s:option(Value, "src_port", translate("Source port")) +sport = s:option(Value, "src_port", translate("Source port"), + translate("Match incoming traffic originating from the given " .. + "source port or port range on the client host")) sport.optional = true sport:depends("proto", "tcp") sport:depends("proto", "udp") @@ -52,18 +56,24 @@ proto:value("tcp", "TCP") proto:value("udp", "UDP") proto:value("tcpudp", "TCP+UDP") -dport = s:option(Value, "src_dport", translate("External port")) +dport = s:option(Value, "src_dport", translate("External port"), + translate("Match incoming traffic directed at the given " .. + "destination port or port range on this host")) dport.size = 5 dport:depends("proto", "tcp") dport:depends("proto", "udp") dport:depends("proto", "tcpudp") -to = s:option(Value, "dest_ip", translate("Internal address")) +to = s:option(Value, "dest_ip", translate("Internal IP address"), + translate("Redirect matched incoming traffic to the specified " .. + "internal host")) for i, dataset in ipairs(luci.sys.net.arptable()) do to:value(dataset["IP address"]) end -toport = s:option(Value, "dest_port", translate("Internal port (optional)")) +toport = s:option(Value, "dest_port", translate("Internal port (optional)"), + translate("Redirect matched incoming traffic to the given port on " .. + "the internal host")) toport.optional = true toport.size = 5