Verified Commit 9ce4fba2 authored by genofire's avatar genofire

wifictld with parameters for a high density gluon babel networks

parent b6605da3
Pipeline #752 passed with stage
in 15 minutes and 8 seconds
......@@ -55,6 +55,7 @@ define Package/wifictld/install
$(INSTALL_BIN) $(PKG_BUILD_DIR)/wifictld $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/init.d/
$(INSTALL_BIN) ./files/etc/init.d/wifictld $(1)/etc/init.d/
$(CP) ./luasrc/. $(1)/
endef
Package/wifictld-mini/install = $(Package/wifictld/install)
......
......@@ -13,7 +13,7 @@ start_service () {
procd_set_param stdout 1
procd_set_param stderr 1
procd_set_param respawn ${respawn_threshold:-3660} ${respawn_timeout:-5} ${respawn_retry:-0}
procd_set_param command "$PROG" --if br-wan --mif br-wan
procd_set_param command "$PROG" --if mmfd0 --addr $(uci get network.loopback.ip6addr | sed 's/\/128//') --maddr ff05::31f1 --port 1000 --clean-authed=1
procd_set_param watch network.wireless
procd_close_instance
}
......
rule 'MULTICAST_OUT -p IPv6 --ip6-protocol udp --ip6-destination ff05::31f1 --ip6-destination-port 1000 -j RETURN'
#!/usr/bin/lua
local uci = require('simple-uci').cursor()
local site = require('gluon.site')
uci:section('firewall', 'rule', 'mesh_wifictld_ll', {
name = 'mesh_wifictld_ll',
src = 'mesh',
src_ip = 'fe80::/64',
dest_port = '1000',
proto = 'udp',
target = 'ACCEPT',
})
uci:section('firewall', 'rule', 'mesh_wifictld_siteprefix', {
name = 'mesh_wifictld_siteprefix',
src = 'mesh',
src_ip = site.node_prefix6(),
dest_port = '1000',
proto = 'udp',
target = 'ACCEPT',
})
uci:save('firewall')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment