shared-state-dnsmasq_servers: new package
Signed-off-by: Gui Iribarren [email protected]
- a uci-defaults script points dnsmasq to use
/var/shared-state/dnsmasq_serversasservers-file - each node then publishes through shared-state their own dhcp.dnsmasq.domain and anygw ipv6
- each node populates the local
/var/shared-state/dnsmasq_serverswith all the domains and ipv6s from the other clouds.
this is the start of getting DNS "right" some notes to self:
-
shared-state-dnsmasq_hostsandshared-state-dnsmasq_leaseshave no concept of "cloud domain", and they should. both dhcp leases and dns hosts should be local to the cloud, and not distributed across clouds.
now it works nicely. tested this on a virtual testbed with 12 nodes split among 4 different clouds. i spotted some quirks and added some fixes in various files.
wishlist: implement rev-servers as well
right now, each node publishes it's own domain and ipv6
and the result is the following
server=/cloudA.test/fdeb:75d8:5c6d::1
server=/cloudD.test/fd30:7030:8ee3::1
server=/cloudB.test/fd54:721a:3043::1
ideally, each node would also publish it's ipv6 prefix, so the result would be
server=/cloudA.test/fdeb:75d8:5c6d::1
rev-server=fdeb:75d8:5c6d::/64,fdeb:75d8:5c6d::1
server=/cloudD.test/fd30:7030:8ee3::1
rev-server=fd30:7030:8ee3::/64,fd30:7030:8ee3::1
server=/cloudB.test/fd54:721a:3043::1
rev-server=fd54:721a:3043::/64,fd54:721a:3043::1
Codecov Report
Merging #812 (9dacffa) into master (19cc376) will decrease coverage by
0.02%. The diff coverage is0.00%.
@@ Coverage Diff @@
## master #812 +/- ##
==========================================
- Coverage 72.27% 72.25% -0.03%
==========================================
Files 37 37
Lines 3293 3294 +1
==========================================
Hits 2380 2380
- Misses 913 914 +1
| Impacted Files | Coverage Δ | |
|---|---|---|
| ...ges/lime-system/files/usr/lib/lua/lime/network.lua | 77.53% <0.00%> (-0.29%) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 19cc376...9dacffa. Read the comment docs.
Sorry for not noticing this before: can you update the Makefile to use https://github.com/libremesh/lime-packages/blob/master/libremesh.mk or just change the "category" from LiMe to LibreMesh?
Re-reading the discussion here after years what I understand is: The pull request is ready for merging but requires a firewall to be in place for filtering some stuff coming from the internet, so this depends on #280 and https://github.com/libremesh/libremesh.github.io/pull/139