From: Steven Barth Date: Mon, 22 Sep 2008 00:15:38 +0000 (+0000) Subject: Added FW rule for splash hotspot portal X-Git-Tag: 0.9.0~1245 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=83494b2751c6ea69fa0fda43a8cb089cc18a45b4;p=oweals%2Fluci.git Added FW rule for splash hotspot portal --- 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" + })