After clean Debian 9.4 installation external firewall started to block UDP 123 to outside world. I did not install NTP server so it must be some workstation time syncing feature.
I can't find any documentation how to change the time servers. All docs I find are about installing the time server and I do not want to do that.
How can I change the time servers after almost default installation (I added ssh and removed print server)? I must be able to use our own time server.
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
How to change the time servers?
- None1975
- df -h | participant
- Posts: 1389
- Joined: 2015-11-29 18:23
- Location: Russia, Kaliningrad
- Has thanked: 45 times
- Been thanked: 66 times
Re: How to change the time servers?
Hello. You can use systemd-timesyncd. The systemd-timesyncd service is available with systemd. To start and enable it, simply run:
To check the service status, use
Code: Select all
# timedatectl set-ntp true
Code: Select all
$ timedatectl status
Code: Select all
$ timedatectl status
Local time: Thu 2015-07-09 18:21:33 CEST
Universal time: Thu 2015-07-09 16:21:33 UTC
RTC time: Thu 2015-07-09 16:21:33
Time zone: Europe/Amsterdam (CEST, +0200)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: no
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github
Debian Wiki | DontBreakDebian, My config files on github
Re: How to change the time servers?
Thank you for information. Answer to my question seems to be editing /etc/systemd/timesyncd.conf, I'll try that.
OPTIONS
The following settings are configured in the "[Time]" section:
NTP=
A space-separated list of NTP server host names or IP addresses. During runtime this list is combined with
any per-interface NTP servers acquired from systemd-networkd.service(8). systemd-timesyncd will contact
all configured system or per-interface servers in turn until one is found that responds. This setting
defaults to an empty list.
OPTIONS
The following settings are configured in the "[Time]" section:
NTP=
A space-separated list of NTP server host names or IP addresses. During runtime this list is combined with
any per-interface NTP servers acquired from systemd-networkd.service(8). systemd-timesyncd will contact
all configured system or per-interface servers in turn until one is found that responds. This setting
defaults to an empty list.
Re: How to change the time servers?
do you mean server as in a software that runs on your computer and serves something (time, assumably), or do you mean external servers that provide time to your machine, on request?
Re: How to change the time servers?
I just wanted to sync time of my machine but from our company time servers. Editing /etc/systemd/timesyncd.conf did the trick.