applications/luci-ffwizard-leipzig: also allow dns traffic
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 15 Feb 2009 00:04:16 +0000 (00:04 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 15 Feb 2009 00:04:16 +0000 (00:04 +0000)
applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua

index 526913c07a9a165e3356a303ba78c104c63dbd08..4dd6e0e15be554f3801a239e01d70c0a54f3bee7 100644 (file)
@@ -353,6 +353,17 @@ function client.write(self, section, value)
        uci:section("dhcp", "dhcp", device .. "dhcp", dhcpbase)
        uci:save("dhcp")
 
+       uci:delete_all("firewall", "rule", {
+               src="freifunk",
+               proto="udp",
+               dest_port="53"
+       })
+       uci:section("firewall", "rule", nil, {
+               src="freifunk",
+               proto="udp",
+               src_port="53",
+               target="ACCEPT"
+       })
        uci:delete_all("firewall", "rule", {
                src="freifunk",
                proto="udp",