Compare commits
1 Commits
master
...
gluon-babe
Author | SHA1 | Date |
---|---|---|
Martin/Geno | 9ce4fba222 |
|
@ -55,6 +55,7 @@ define Package/wifictld/install
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/wifictld $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/wifictld $(1)/usr/sbin/
|
||||||
$(INSTALL_DIR) $(1)/etc/init.d/
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
||||||
$(INSTALL_BIN) ./files/etc/init.d/wifictld $(1)/etc/init.d/
|
$(INSTALL_BIN) ./files/etc/init.d/wifictld $(1)/etc/init.d/
|
||||||
|
$(CP) ./luasrc/. $(1)/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
Package/wifictld-mini/install = $(Package/wifictld/install)
|
Package/wifictld-mini/install = $(Package/wifictld/install)
|
||||||
|
|
|
@ -13,7 +13,7 @@ start_service () {
|
||||||
procd_set_param stdout 1
|
procd_set_param stdout 1
|
||||||
procd_set_param stderr 1
|
procd_set_param stderr 1
|
||||||
procd_set_param respawn ${respawn_threshold:-3660} ${respawn_timeout:-5} ${respawn_retry:-0}
|
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_set_param watch network.wireless
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
rule 'MULTICAST_OUT -p IPv6 --ip6-protocol udp --ip6-destination ff05::31f1 --ip6-destination-port 1000 -j RETURN'
|
|
@ -0,0 +1,25 @@
|
||||||
|
#!/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')
|
Loading…
Reference in New Issue