ntp2chrony tool ignores restrict line that contains expanded ipv6 netmasks

Solution Verified - Updated -

Issue

  • ntp2chrony tool doesn't convert the following restrict line contains expanded netmask.
restrict xxxx:xxxx:xxxx:xxxx:: mask ffff:ffff:ffff:fff0:: nomodify notrap nopeer noquery
  • The generated /etc/chrony.conf shows that it was ignored in the conversion:
# The following directives were ignored in the conversion:
# restrict xxxx:xxxx:xxxx:xxxx:: mask ffff:ffff:ffff:fff0:: nomodify notrap nopeer noquery
  • Change the expanded netmask to bitmask format in the restrict line:
restrict xxxx:xxxx:xxxx:xxxx:: mask 60 nomodify notrap
  • Then it could be converted successfully in /etc/chrony.conf:
allow xxxx:xxxx:xxxx:xxxx::/60

Environment

  • Red Hat Enterprise Linux 8
  • chrony older than chrony-4.2-1.el8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content