openwrt / openwrt/packages

chrony: does not support refclock section, nor specifying subnets explicitly

Open
#26,601 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

The chrony package has no support for 'refclock' settings. This is useful to have if you have say a GPS and/or PPS source connected to your openwrt device to discipline its clock precisely.

Also if you want to specify the subnet to serve NTP to, currently this can only be done on a per-interface basis. However it's cumbersome to create interfaces if your target subnet is larger than any individual interface (in the case i have, where i have a "dumb AP" device that serves NTP for multiple vlans (that i don't have interfaces for on this device since it's a dumb AP). It would be nice if chrony config also supported the ability to explicitly just list the subnets explicitly to allow queries from (without needing to jump through hoops adding them to mock interfaces which are then unrelated).

Will create a PR shortly to address these two shortcomings.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by locating the chrony package configuration and its current interface-based NTP access settings; then trace how package options are translated into chrony configuration. Done means supporting refclock settings and explicitly listed subnets, with coverage for both behaviors.

Written by the indexing model from the issue text.

Assessment

Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.