Port secuboxd from Debian/Go to OpenWrt shell implementation: - secuboxd daemon with Unix control socket at /var/run/secuboxd/topo.sock - secuboxctl CLI compatible with Debian version interface - Mesh libraries: topology, discovery, election, telemetry, control - Mesh gate election with weighted scoring (uptime, peers, CPU, memory, role) - mDNS service discovery (_secubox._udp.local) via umdns - DID integration via mirrornet identity library - RPCD handler with 11 ubus methods for LuCI integration - procd init script with respawn and network triggers - UCI config sections: mesh, node, telemetry, discovery Fixes subprocess state access for socat handler by saving daemon state to file. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
34 lines
740 B
Plaintext
34 lines
740 B
Plaintext
|
|
config mesh 'mesh'
|
|
option enabled '1'
|
|
option role 'edge'
|
|
option subnet '10.42.0.0/16'
|
|
option mdns_service '_secubox._udp'
|
|
option beacon_interval '30'
|
|
option election_interval '60'
|
|
option prune_interval '300'
|
|
|
|
config node 'node'
|
|
option did ''
|
|
option keypair '/var/lib/mirrornet/identity/keys/primary.key'
|
|
option auto_rotate '0'
|
|
option rotate_days '30'
|
|
|
|
config telemetry 'telemetry'
|
|
option enabled '1'
|
|
option interval '60'
|
|
option share_metrics '1'
|
|
|
|
config discovery 'discovery'
|
|
option mdns '1'
|
|
option wireguard '1'
|
|
option arp '1'
|
|
option static '1'
|
|
|
|
# Example static peer configuration
|
|
#config peer 'peer1'
|
|
# option did 'did:plc:abcdef0123456789'
|
|
# option address '192.168.1.100'
|
|
# option role 'relay'
|
|
# option port '51820'
|