summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-ffwizard-leipzig/luasrc/model
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-22 00:15:38 +0000
committerSteven Barth <steven@midlink.org>2008-09-22 00:15:38 +0000
commit83494b2751c6ea69fa0fda43a8cb089cc18a45b4 (patch)
tree2e6bc64cd31dc94d7d52eb3bf39b1c4b37fefca4 /applications/luci-ffwizard-leipzig/luasrc/model
parent57def3cead7af261dfab738551fa357c2cea4d0e (diff)
Added FW rule for splash hotspot portal
Diffstat (limited to 'applications/luci-ffwizard-leipzig/luasrc/model')
-rw-r--r--applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
index d7cf400945..87bbe4d1f2 100644
--- a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
+++ b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
@@ -298,6 +298,17 @@ function client.write(self, section, value)
dest_port="67",
target="ACCEPT"
})
+ uci:delete_all("firewall", "rule", {
+ src="freifunk",
+ proto="tcp",
+ dest_port="8082",
+ })
+ uci:section("firewall", "rule", nil, {
+ src="freifunk",
+ proto="tcp",
+ dest_port="8082",
+ target="ACCEPT"
+ })