summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-ffwizard-leipzig/luasrc/model/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-01-25 16:46:28 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-01-25 16:46:28 +0000
commite683011032ec099a866c9582f3e965b4a69074fd (patch)
tree7b07be1b873d41363f2a568f926dc7180d9a6d41 /applications/luci-ffwizard-leipzig/luasrc/model/cbi
parent58d15fdedb105997156c86aedde87a18786da433 (diff)
applications/luci-ffwizard-leipzig: prepare advanced firewall config and disable tcp_ecn by default
Diffstat (limited to 'applications/luci-ffwizard-leipzig/luasrc/model/cbi')
-rw-r--r--applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
index 827bc14b7f..6373c7a807 100644
--- a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
+++ b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
@@ -209,6 +209,16 @@ function main.write(self, section, value)
uci:set("firewall", section[".name"], "drop_invalid", "0")
end)
+ -- Prepare advanced config
+ local has_advanced = false
+ uci:foreach("firewall", "advanced",
+ function(section) has_advanced = true end)
+
+ if not has_advanced then
+ uci:section("firewall", "advanced", nil,
+ { tcp_ecn = "0" })
+ end
+
uci:save("firewall")