lime-packages icon indicating copy to clipboard operation
lime-packages copied to clipboard

shared-state-dnsmasq_servers: new package

Open altergui opened this issue 5 years ago • 5 comments

Signed-off-by: Gui Iribarren [email protected]

  • a uci-defaults script points dnsmasq to use /var/shared-state/dnsmasq_servers as servers-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_servers with all the domains and ipv6s from the other clouds.

altergui avatar Nov 23 '20 23:11 altergui

this is the start of getting DNS "right" some notes to self:

  • shared-state-dnsmasq_hosts and shared-state-dnsmasq_leases have 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.

altergui avatar Nov 24 '20 01:11 altergui

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.

altergui avatar Dec 17 '20 07:12 altergui

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

altergui avatar Dec 17 '20 07:12 altergui

Codecov Report

Merging #812 (9dacffa) into master (19cc376) will decrease coverage by 0.02%. The diff coverage is 0.00%.

Impacted file tree graph

@@            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 data Powered by Codecov. Last update 19cc376...9dacffa. Read the comment docs.

codecov-io avatar Dec 17 '20 08:12 codecov-io

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?

ilario avatar Sep 15 '22 16:09 ilario

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

ilario avatar Jan 30 '23 18:01 ilario