gluon-announced: allow announced queries on WAN (if mesh-on-wan is enabled)

This commit is contained in:
Matthias Schiffer 2015-04-28 05:25:56 +02:00
parent 472087a7b1
commit 6bcd9b92d4
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#!/usr/bin/lua
local uci = require('luci.model.uci').cursor()
-- Allow announced port on WAN to allow resolving neighbours over mesh-on-wan
uci:section('firewall', 'rule', 'wan_announced',
{
name = 'wan_announced',
src = 'wan',
src_ip = 'fe80::/64',
dest_port = '1001',
proto = 'udp',
target = 'ACCEPT',
}
)
uci:save('firewall')
uci:commit('firewall')