Added FW rule for splash hotspot portal
authorSteven Barth <steven@midlink.org>
Mon, 22 Sep 2008 00:15:38 +0000 (00:15 +0000)
committerSteven Barth <steven@midlink.org>
Mon, 22 Sep 2008 00:15:38 +0000 (00:15 +0000)
applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua

index d7cf400..87bbe4d 100644 (file)
@@ -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"
+       })