NTP client on 3CX v20 on Debian 12

Status
Not open for further replies.

Alain.R.

Silver Partner
Advanced Certified
Joined
Apr 29, 2024
Messages
11
Reaction score
1
I try to configure NTP on a 3CX v20 on Debian 12. I just run the command timedatectl status and I get :
System clock synchronized: no
NTP service: n/a


how to proceed ?

thanks
Alain Rime
 
It's weird actually, cos I've been having a problem with the NTP client on a debian install with the ISO and i've just had to resolve manually.

Code:
sudo nano /etc/ntp.conf
stick your NTP server in there "server uk.pool.ntp.org" for example
save it out.
Code:
sudo systemctl enable ntp
sudo systemctl restart ntp
 
Hello,

I tried the command :
sudo systemctl enable ntp

I get the error :
Failed to enable unit: Unit file ntp.service does not exist.

I have installed this 3CX v20 from the official ISO : https://downloads-global.3cx.com/downloads/debian12iso/debian-amd64-netinst-3cx.iso

I have the version Version 20.0 Update 1 (Build 731 Release).

I also check on another system that I installed in v20, same issue.

Best Regards,
Alain
 
Code:
sudo apt-get update sudo apt-get install ntp
 
  • Like
Reactions: Evolute IT
I installed it and use the following command:
sudo systemctl enable ntp

I get :
Failed to enable unit: Refusing to operate on alias name or linked unit file: ntp.service
 
try sudo systemctl enable ntp.service
 
Still an error :
sudo systemctl enable ntp.service
Failed to enable unit: Refusing to operate on alias name or linked unit file: ntp.service

I also observe that there is no /etc/ntp.conf but only /etc/ntpsec/ntp.conf
So it seems that your repository is not installing ntp but ntpsec.
Could you provide more info about the exact procedure to configure it ?
Thanks.
 
ntp out of the box seems to be working fine! Its nftables that is the issue!

add udp 123 to the /etc/nftables.conf file.

I just included it into the existing 3cx udp ports! (in bold below!)

# 3CX PhoneSystem specific
tcp dport { 80,443,5000,5001,5015,5060,5061,5062,5090 } ct state new counter accept comment "Accept 3CX PhoneSystem TCP ports"
udp dport { 69,123,5060,5090,7000-10999 } counter accept comment "Accept 3CX PhoneSystem UDP ports"

The ntp conf that pertains to above!

/etc/ntpsec/ntp.conf

# By default, exchange time with everybody, but don't allow configuration.
restrict default kod nomodify nopeer noquery limited
 
Status
Not open for further replies.

Forum statistics

Threads
111,952
Messages
589,896
Members
164,845
Latest member
tdzski5