summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-freifunk-policyrouting
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2012-07-01 00:01:38 +0000
committerManuel Munz <freifunk@somakoma.de>2012-07-01 00:01:38 +0000
commit9b1f4dfee38395e99009be5f1276153d2d052506 (patch)
treeb05974be6ed560dbe3f6bd08fc1e40e7e1b8fb89 /applications/luci-freifunk-policyrouting
parent76106a11b9a9bc58dee9e729954572e7f870a166 (diff)
contrib/freifunk-policyrouting: Fix deletion of rules; add fallback option to use the mesh gateway if the own gateway is not available
Diffstat (limited to 'applications/luci-freifunk-policyrouting')
-rw-r--r--applications/luci-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/applications/luci-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua b/applications/luci-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua
index b3cac9a10..4361eb782 100644
--- a/applications/luci-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua
+++ b/applications/luci-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua
@@ -28,6 +28,10 @@ local strict = c:option(Flag, "strict", translate("Strict Filtering"), translate
"select this option."))
strict.rmempty = false
+local fallback = c:option(Flag, "fallback", translate("Fallback to mesh"),
+ translate("If your own gateway is not available then fallback to the mesh default gateway."))
+strict.rmempty = false
+
local zones = c:option(MultiValue, "zones", translate("Firewall zones"), translate("All traffic from interfaces belonging to these zones will be sent via "..
"a gateway in the mesh network."))
uci:foreach("firewall", "zone", function(section)