diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/140-firewall-rules b/package/gluon-core/luasrc/lib/gluon/upgrade/140-firewall-rules index 3cfac9c8..5345c1a7 100755 --- a/package/gluon-core/luasrc/lib/gluon/upgrade/140-firewall-rules +++ b/package/gluon-core/luasrc/lib/gluon/upgrade/140-firewall-rules @@ -3,6 +3,10 @@ local uci = require('simple-uci').cursor() +local defaults = uci:get_first('firewall', 'defaults') +uci:set('firewall', defaults, 'input', 'REJECT') + + local function reject_input_on_wan(zone) if zone.name == 'wan' then uci:set('firewall', zone['.name'], 'input', 'REJECT')