瀏覽代碼

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

Matthias Schiffer 9 年之前
父節點
當前提交
6bcd9b92d4
共有 1 個文件被更改,包括 18 次插入0 次删除
  1. 18 0
      package/gluon-announced/files/lib/gluon/upgrade/400-announced-firewall

+ 18 - 0
package/gluon-announced/files/lib/gluon/upgrade/400-announced-firewall

@@ -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')