Skip to content

watchping: configurable privacy-respecting ping targets - #1307

Open
sanketpatel32 wants to merge 5 commits into
libremesh:masterfrom
sanketpatel32:issue/1303
Open

sanketpatel32 wants to merge 5 commits into
libremesh:masterfrom
sanketpatel32:issue/1303

Conversation

@sanketpatel32

Copy link
Copy Markdown

Summary

Fixes #1303.

Make watchping targets configurable through the LibreMesh configuration hierarchy. The network section in lime-defaults, lime-community, lime-node, or a node-specific lime-MAC file can now contain:

option watchping_ipv4_hosts '9.9.9.9 1.1.1.1'
option watchping_ipv6_hosts '2620:fe::fe 2606:4700:4700::1111'

A new lime-config hook writes these values to system.watchping.pinghosts and system.watchping6.pinghosts. Values written by lime-config are tracked so later lime-config changes are applied, while independently user-managed system.watchping* values are preserved. Exact legacy generated defaults (8.8.8.8 and 2001:470:20::2) are migrated; other pre-existing values are left untouched.

The first-boot defaults and init-script fallbacks now use Quad9 with Cloudflare as fallback for both IPv4 and IPv6 instead of Google DNS or Hurricane Electric. The service reload trigger now watches system, where watchping is actually configured.

Tests

  • ./run_tests — 364 successes, 0 failures, 0 errors
  • ./tools/ci/lint/lua.sh
  • ./tools/ci/lint/sh.sh
  • stylua -c .
  • shellcheck and shfmt on the changed shell files

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow configuring watchping target other than 8.8.8.8

1 participant