2 LuCI - Lua Configuration Interface
4 Copyright 2017 Florian Eckert <fe@dev.tdt.de>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
15 local net = require "luci.model.network".init()
19 s = m:section(NamedSection, "globals", "globals", translate("Globals mwan3 options"))
20 n = s:option(ListValue, "local_source",
21 translate("Local source interface"),
22 translate("Use the IP address of this interface as source IP address for traffic initiated by the router itself"))
25 for _, net in ipairs(net:get_networks()) do
26 if net:name() ~= "loopback" then
35 translate("Firewall mask"),
36 translate("Enter value in hex, starting with <code>0x</code>"))
37 mask.datatype = "hex(4)"
38 mask.default = "0xff00"