From 83494b2751c6ea69fa0fda43a8cb089cc18a45b4 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 22 Sep 2008 00:15:38 +0000 Subject: [PATCH] Added FW rule for splash hotspot portal --- .../luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua index d7cf40094..87bbe4d1f 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" + }) -- 2.11.0