Project

General

Profile

Feature #668

NTP configuration

Added by jasonward over 10 years ago. Updated over 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
11/03/2010
Due date:
% Done:

0%


Description

Currently if you want your Amahi HDA to maintain accurate time you need to configure NTP manually.

Please add this automatically.

Perhaps by referencing time servers at the NTP pool http://www.pool.ntp.org/en/

Then offer the HDA to all DHCP clients as their source of NTP

As an additional extra, probably advanced configuration, for those with a fixed IP and after a suitable warning about long term commitment offer details on how to become a member of the NTP pool http://www.pool.ntp.org/en/join.html

As and advanced option allow people to both narrow down the the pool they use (I use the UK pool http://www.pool.ntp.org/zone/uk for instance, but some country pools are too small to viable at the moment, but continental pools are also offered like Oceana http://www.pool.ntp.org/zone/oceania) and also to use different time servers outside of the pool such as their ISP's etc, advance configuration should also allow the changing of the NTP server offered to clients over DHCP.

Details of the usage of the pool within open source projects is available here http://www.pool.ntp.org/en/vendors.html

I'd be happy to do a chunk of the legwork on this, but I would need mentoring by an existing developer...

History

#1 Updated by bigfoot65 over 10 years ago

This is a step that should be completed during the initial Fedora install (see http://forums.amahi.org/viewtopic.php?f=16&t=1956&p=9764#p9764). It is documented in the install instructions and not necessary to duplicate in Amahi. If a user chooses not to perform this step, then we should not force it.

Also, I believe this can be completed manually after install via desktop if necessary.

#2 Updated by rgmhtt over 10 years ago

I have configured NTP servers. The files you need to touch are:

/etc/ntp.conf
/etc/ntp/ntpservers
/etc/sysconfig/ntpd

In ntp.conf

you want to open up to your local clients and tell the servers that you are not updatedable by them:

restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

restrict 0.rhel.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 1.rhel.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 2.rhel.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery

ntpservers has your list of servers, eg:

clock.redhat.com
clock2.redhat.com

ntpd can be used to update hardware clock:

  1. Set to 'yes' to sync hw clock after successful ntpdate
    SYNC_HWCLOCK=yes

Of course you have to enable the ntpd server, which I see is already the case here...

#3 Updated by jasonward over 10 years ago

I installed via the ExpressCD and was never offered an option to setup NTP, and the installation once complete had no time sources setup.

I have webmin to fix this, and will add the HDA ip into the DHCP server as a NTP source for the network.

If NTP configuration is not seen as a feature for Amahi, the ExpressCD probably needs to default to using NTP over the internet, and not as it currently seems default to No.

#4 Updated by rgmhtt over 10 years ago

Bigfoot65,

The NTP setup from the install is NOT adequate. That only gets the system as an NTP client, not an NTP server for the local net.

If you want to serve NTP to the network (not have all your systems going out to get the time) then you need to configure Amahi as an NTP server. Now the NET command

net time /set /yes

Does not need Amahi to be an NTP server, only a client.

I have a couple dozen Linux systems here. I have configured 3 to be NTP servers and the rest to be NTP clients off those 3 servers rather than have all go out for their time.

#5 Updated by rgmhtt over 10 years ago

Oh, you can always configure the NTP client via System > Administration > Date & Time

But this still only makes Amahi an NTP client, not also a server.

Also available in: Atom