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 d7cf400945161b93d53206a386f823d80b4f59c0..87bbe4d1f29cf480239d977351523a9d734aac96 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"
+       })