瀏覽代碼

gluon-respondd: restrict queries from the mesh to link-local addresses

Restrict to link-local addresses to prevent amplification attacks from
outside the mesh, or such attacks affecting the outside world.

Fixes #637
Matthias Schiffer 8 年之前
父節點
當前提交
2f499dbfc1
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      package/gluon-respondd/files/lib/gluon/upgrade/400-respondd-firewall

+ 12 - 0
package/gluon-respondd/files/lib/gluon/upgrade/400-respondd-firewall

@@ -16,5 +16,17 @@ uci:section('firewall', 'rule', 'wan_respondd',
   }
 )
 
+-- Restrict respondd queries to link-local addresses to prevent amplification attacks from outside
+uci:section('firewall', 'rule', 'client_respondd',
+  {
+    name = 'client_respondd',
+    src = 'client',
+    src_ip = '!fe80::/64',
+    dest_port = '1001',
+    proto = 'udp',
+    target = 'REJECT',
+  }
+)
+
 uci:save('firewall')
 uci:commit('firewall')