IPv4/IPv6デュアルスタック環境におけるNTPサーバ設定を書いておきます。
ソフトウェア
- Raspberry Pi OS Bullseye 64bit版
- ntp 4.2.8
インストール
sudo apt install -y ntp
/etc/ntp.conf
下記をコメントアウトします。
#pool 0.debian.pool.ntp.org iburst #pool 1.debian.pool.ntp.org iburst #pool 2.debian.pool.ntp.org iburst #pool 3.debian.pool.ntp.org iburst
下記を加筆します。
pool ntp.nict.jp
下記のように編集します。
restrict -4 192.168.0.0 mask 255.255.255.0 kod nomodify nopeer notrap restrict -6 xxxx:xxxx:xxxx:xxxx:: mask ffff:ffff:ffff:ffff:: kod nomodify nopeer notrap restrict -6 fe80:: mask ffc0:: kod nomodify nopeer notrap