Skip to content
Snippets Groups Projects
Unverified Commit 01336f70 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-core: firewall: make the default input policy REJECT

Fixes #1311
parent a32fddf3
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
local uci = require('simple-uci').cursor() 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) local function reject_input_on_wan(zone)
if zone.name == 'wan' then if zone.name == 'wan' then
uci:set('firewall', zone['.name'], 'input', 'REJECT') uci:set('firewall', zone['.name'], 'input', 'REJECT')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment