* gluon-core, gluon-client-bridge: introduce new firewall zone: local_client * gluon-core: put clients in local_client zone, introduce drop-zone, set dns-rules and zones * gluon-respondd: allow respondd on mesh * gluon-status-page-api: allow http input on mesh and client
13 lines
263 B
Lua
Executable File
13 lines
263 B
Lua
Executable File
#!/usr/bin/lua
|
|
local uci = require('simple-uci').cursor()
|
|
|
|
for _, zone in ipairs({'mesh', 'local_client'}) do
|
|
uci:section('firewall', 'rule', zone .. '_http', {
|
|
src = zone,
|
|
dest_port = '80',
|
|
proto = 'tcp',
|
|
target = 'ACCEPT',
|
|
})
|
|
end
|
|
uci:save('firewall')
|