I am having issues with NTPD, I've already added ntpd_enable="YES" and ntpd_sync_on_start="YES" to rc.conf and that seems to be working (the service starts and runs normally). However, ntpd is not changing the time and I am experiencing drift. I believe there might be an issue witht ntpd talking to the pool servers?
I've not made many changes to /etc/ntp.conf - the only thing I did was add the Brazil servers with:
Initially, I only had the default freebsd pools, and was still facing issues, so I added the BR ones as a troubleshooting step and had commented out the freebsd pools as instructed but that seemed to make no difference. So I uncommented the freebsd ones and left all 4 to check, still made no difference. For now, all 4 are uncommented.
I also see in my conf:
and my interfaces on ifconfig are rc0, lo0, and wlan0. wlan0 I set up manually for wireless connection and is the network that I use regularly for internet access. It goes through my home modem & router.
The restrict options on ntp.conf are the default ones:
The reason I say there may be something weird with talking to the servers, is that when I run
I could fix the time by running
On further troubleshooting, I used my router to capture UDP packets with source or destination of my freeBSD system, and upon running
However, when running ntpd or even rebooting the computer entirely (ntpd_sync_on_start="YES" is still on), no NTP packets were captured at all by the router (other UDP packets were, but nothing on port 123).
I don't need any other client to be syncing from this computer so if there's anything extra I should be tightening up on the restrictions please let me know too. It only needs to sync time for this one computer.
I've not made many changes to /etc/ntp.conf - the only thing I did was add the Brazil servers with:
Code:
pool 0.br.pool.ntp.org iburst
pool 2.br.pool.ntp.org iburst
Initially, I only had the default freebsd pools, and was still facing issues, so I added the BR ones as a troubleshooting step and had commented out the freebsd pools as instructed but that seemed to make no difference. So I uncommented the freebsd ones and left all 4 to check, still made no difference. For now, all 4 are uncommented.
I also see in my conf:
Code:
#Ignore wired interface
nic ignore rc0
and my interfaces on ifconfig are rc0, lo0, and wlan0. wlan0 I set up manually for wireless connection and is the network that I use regularly for internet access. It goes through my home modem & router.
The restrict options on ntp.conf are the default ones:
Code:
restrict default limited kod nomodify notrap noquery nopeer
restrict source limited kod nomodify notrap noquery
restrict 127.0.0.1
restrict ::1
The reason I say there may be something weird with talking to the servers, is that when I run
ntpq -p I get:
Code:
0.freebsd.pool. .POOL. 16 p - 64 0 0.000 +0.000 0.000
2.freebsd.pool. .POOL. 16 p - 64 0 0.000 +0.000 0.000
0.br.pool.ntp.o .POOL. 16 p - 64 0 0.000 +0.000 0.000
2.br.pool.ntp.o .POOL. 16 p - 64 0 0.000 +0.000 0.000
I could fix the time by running
ntpdate 0.br.pool.ntp.org normally, it synced. But apparently ntpd is not keeping it in sync. Appreciate any help debugging, I'm pretty new to freeBSD On further troubleshooting, I used my router to capture UDP packets with source or destination of my freeBSD system, and upon running
ntpdate 0.br.pool.ntp.org the following packets were captured:
However, when running ntpd or even rebooting the computer entirely (ntpd_sync_on_start="YES" is still on), no NTP packets were captured at all by the router (other UDP packets were, but nothing on port 123).
I don't need any other client to be syncing from this computer so if there's anything extra I should be tightening up on the restrictions please let me know too. It only needs to sync time for this one computer.