This might help:
It adds a few lines to ntp.conf to make it act as you expected.
This might help:
It adds a few lines to ntp.conf to make it act as you expected.
Sadly - No
Dave
Ha! You’re going to need to give better hints on what is happening on your side. This is hard to fix otherwise…
Try:
ls -al /etc/ntp
and post the results.
Hmm. I had similar problem after installation. I added manually some time servers into /etc/ntp.conf
, and restarted ntpd. Now ntpq -p -n
gives reasonable output. Maybe this could be documented on the Services → NTP Configuration page?
Hi Juha - Thank you for your post. Please take a moment to update and improve the NTP IPFire Wiki page. It is open to you (and everyone else) to improve and make better. You would login using the same ID and password as this Community.
If you have issues or questions, feel free to post a question. I’d be happy to help!
Thanks again!
Jon
Well… What I would really want, is that the Services → Time Server cgi-script would install those Primary and Secondary NTP servers into /etc/ntp.conf
. This is also what I think users expect. If this were done, there would be no need for manual editing. And we could get rid of the Synchronization dialog, because synchronization is just what real NTP is for .
For the purpose of verification, it would be useful to let ntpd
produce statistics. It takes a few more lines in /etc/ntp.conf. Here is a nice picture of how it works after I made these changes i my system:
-juha
You need to alter /etc/ntp.conf and turn off the 1 hour sync.
Mine looks like
[root@wr-fw ~]# cat /etc/ntp.conf
disable monitor
restrict default nomodify
pool 0.au.pool.ntp.org
pool 1.au.pool.ntp.org
pool 2.au.pool.ntp.org
pool 3.au.pool.ntp.org
fudge 127.127.1.0 stratum 10
More stuff here I just posted:
I think I am correct but if someone knows better I am all ears.
Works perfectly.
You may need to restart all hosts behind the firewall to pick up setting as they will all be syncing with their local clock. As far as I can see NTP is not working on IPFire and never has. THink I had to make the same changes to my IPCop install as well!
Mine are set to the default, they are,
0.ipfire.pool.ntp.org
1.ipfire.pool.ntp.org
I just manually ran it, it did update.
Yes, it works if you add those lines as -
server 0.ipfire.pool.ntp.org
server 1.ipfire.pool.ntp.org
but the pool command does not.
For instance -
pool nz.pool.ntp.org returns a total of 8 valid servers but
pool ipfire.pool.ntp.org returns none.
I just had to chnage my ntp conf again to get ntp working correctly…
Before
[root@wr-fw ~]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*LOCAL(0) .LOCL. 10 l 60 64 377 0.000 +0.000 0.000
[root@wr-fw ~]# cat /etc/ntp.conf-01
disable monitor
restrict default nomodify noquery
restrict 127.0.0.1
server 127.127.1.0 prefer
fudge 127.127.1.0 stratum 10
driftfile /etc/ntp/drift
after
[root@wr-fw ~]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
0.au.pool.ntp.o .POOL. 16 p - 64 0 0.000 +0.000 0.000
1.au.pool.ntp.o .POOL. 16 p - 64 0 0.000 +0.000 0.000
2.au.pool.ntp.o .POOL. 16 p - 64 0 0.000 +0.000 0.000
3.au.pool.ntp.o .POOL. 16 p - 64 0 0.000 +0.000 0.000
bitburger.simon .GPS. 1 u 7 64 7 66.088 +17.137 52.880
any.time.nl 8.145.32.135 2 u 7 64 7 51.028 +21.269 51.868
103.76.40.123 ( 110.142.180.39 2 u 10 64 7 52.973 +21.902 51.417
ntp2.ds.network 162.159.200.1 4 u 11 64 7 7.019 +21.396 51.591
time.cloudflare 10.84.8.4 3 u 12 64 7 6.542 +21.216 51.657
x.ns.gin.ntt.ne 249.224.99.213 2 u 15 64 7 53.703 +23.776 51.615
toc.ntp.telstra 58.163.113.212 2 u 10 64 7 6.101 +19.268 51.533
ntp1.ds.network 162.159.200.123 4 u 16 64 7 7.038 +21.764 51.995
pauseq4vntp2.da 110.142.180.39 2 u 13 64 7 55.383 +22.052 51.303
ntp.seby.io 17.253.66.253 2 u 15 64 7 51.082 +20.947 51.853
y.ns.gin.ntt.ne 249.224.99.213 2 u 16 64 7 53.568 +25.298 52.200
time.cloudflare 10.84.8.4 3 u 13 64 7 6.581 +19.633 52.201
61-68-38-238.st 203.59.7.248 3 u 11 64 7 6.414 +18.791 52.401
ec2-13-55-50-68 203.206.205.83 3 u 12 64 7 47.739 +19.313 51.808
eth817.qld.adsl 172.22.254.53 2 u 12 64 3 73.448 +19.447 33.210
123.50.147.14 .PPS. 1 u 16 64 3 72.347 +21.210 31.913
45.76.113.31 (d 17.253.66.125 2 u 19 64 1 51.149 +21.280 0.000
[root@wr-fw ~]# cat /etc/ntp.conf
disable monitor
restrict default nomodify
pool 0.au.pool.ntp.org
pool 1.au.pool.ntp.org
pool 2.au.pool.ntp.org
pool 3.au.pool.ntp.org
fudge 127.127.1.0 stratum 10
driftfile /etc/ntp/drift
Hi all,
all right, let’s shed some light on this…
This is completely intentional. Please refer to the NTP Pool Project’s homepage for further information on how the NTP pool architecture works.
ntpd
sometimes gets confused if the internet connectivity is flapping. Because of this and some other reasons, we decided to move on to chrony
, being a more robust software with a smaller footprint. Unfortunately, time is currently short, and priorities laid elsewhere (kernel 5.10.x in particular).
Thanks, and best regards,
Peter Müller
I have a local GPS timeserver, updating from it hourly doesn’t sound great (yes i can edit the config directly).
I did find it counter-intuitive when i set an ntp server in the gui, it’s using that for settime as opposed the ntp service.
chrony would be nice.
hi !
as i remember i posted here somewhere lfs for chrony (i have it running on my ipfire) … but if you want to use gps with sense , you need also the PPS signal which is provided by satelites. for this i use 2x Pi4 with this module (ipfire runs with a USB-DCF77 module)
I did not figured out how to use gpio pin of my APU board…
Ciao Gerd
NTP issues are fixed in IPFire 2.27 - Core Update 169 released.
see:
https://git.ipfire.org/?p=ipfire-2.x.git;a=commit;h=2234e8aacac2e0d0b06dac4513585c15c2b3b440