1 -- Copyright 2017 Florian Eckert <fe@dev.tdt.de>
2 -- Licensed to the public under the GNU General Public License v2.
4 local net = require "luci.model.network".init()
7 m = Map("mwan3", translate("MWAN - Globals"))
9 s = m:section(NamedSection, "globals", "globals", nil)
10 n = s:option(ListValue, "local_source",
11 translate("Local source interface"),
12 translate("Use the IP address of this interface as source IP " ..
13 "address for traffic initiated by the router itself"))
16 for _, net in ipairs(net:get_networks()) do
17 if net:name() ~= "loopback" then
26 translate("Firewall mask"),
27 translate("Enter value in hex, starting with <code>0x</code>"))
28 mask.datatype = "hex(4)"
29 mask.default = "0xff00"