Skip to content
Snippets Groups Projects
Commit 5bb4316f authored by Jan-Philipp Litza's avatar Jan-Philipp Litza
Browse files

gluon-neighbour-info: Open firewall on WAN for respondd replies

If the query was via multicast, the response isn't matched by
--state ESTABLISHED,RELATED

This fixes #619
parent 0005b3b5
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,8 @@ define Build/Compile ...@@ -32,6 +32,8 @@ define Build/Compile
endef endef
define Package/gluon-neighbour-info/install define Package/gluon-neighbour-info/install
$(CP) ./files/* $(1)/
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/gluon-neighbour-info $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/gluon-neighbour-info $(1)/usr/bin/
endef endef
......
#!/usr/bin/lua
local uci = require('luci.model.uci').cursor()
-- Allow incoming respondd replies to queries on WAN
-- If the query was via multicast, the response isn't matched by --state RELATED
uci:section('firewall', 'rule', 'wan_respondd_reply',
{
name = 'wan_respondd_reply',
src = 'wan',
src_ip = 'fe80::/64',
src_port = '1001',
dest_port = '32768:61000', -- see /proc/sys/net/ipv4/ip_local_port_range
proto = 'udp',
target = 'ACCEPT',
}
)
uci:save('firewall')
uci:commit('firewall')
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