Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59463 - Default ntp configuration could be simplified and standardized
Summary: Default ntp configuration could be simplified and standardized
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-04 16:19 UTC by Per Cederberg
Modified: 2004-08-05 00:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Per Cederberg 2004-08-04 16:19:32 UTC
Various things in the default ntp configuration files could be improved to provide a smoother installation and configuration for most normal users. Ideally we could reach a situation where most users wouldn't have to touch the configuration files at all. Of course more advanced users would still like to tweak things, but I think the following things would simplify even for them:

1. The default /etc/conf.d/ntp-client file contains a reference to "someserver". This could be replaced with pool.ntp.org:

NTPCLIENT_OPTS="-Q -b pool.ntp.org"

2. The default /etc/ntp.conf could contain the same default servers (but keeping the current notes for people who need better precision):

server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org

3. Security policy no 2 in /etc/ntp.conf could be picked as default and uncommented:

restrict default notrust nomodify
restrict 127.0.0.1

Alternatively, also add a "noquery" to make the service not respond to external queries.

4. The ntp.conf example file could thereafter be installed as /etc/ntp.conf. And voil
Comment 1 Per Cederberg 2004-08-04 16:19:32 UTC
Various things in the default ntp configuration files could be improved to provide a smoother installation and configuration for most normal users. Ideally we could reach a situation where most users wouldn't have to touch the configuration files at all. Of course more advanced users would still like to tweak things, but I think the following things would simplify even for them:

1. The default /etc/conf.d/ntp-client file contains a reference to "someserver". This could be replaced with pool.ntp.org:

NTPCLIENT_OPTS="-Q -b pool.ntp.org"

2. The default /etc/ntp.conf could contain the same default servers (but keeping the current notes for people who need better precision):

server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org

3. Security policy no 2 in /etc/ntp.conf could be picked as default and uncommented:

restrict default notrust nomodify
restrict 127.0.0.1

Alternatively, also add a "noquery" to make the service not respond to external queries.

4. The ntp.conf example file could thereafter be installed as /etc/ntp.conf. And voilá - ntp would work out of the box for most people.


Reproducible: Always
Steps to Reproduce:





This is probably related to bug #54564.

Running net-misc/ntp-4.2.0-r2.
Comment 2 SpanKY gentoo-dev 2004-08-04 21:37:12 UTC
it's not often i get a good bug report about ntp ... usually people get angry at me and/or flame :)

awesome suggestions, ive pretty much added them all ...

with #2, i just added one 'server pool.ntp.org' instead of three lines for 0,1,2

with #3, i didnt add the 'noquery' option since i think many people who run their own ntpd do so to allow their little network to sync up ... i could be wrong ;)
Comment 3 Per Cederberg 2004-08-05 00:37:13 UTC
Wow, that was a quick fix! Many thanks!

Lets hope ntp works better for people now, so that you'll see fewer bug reports in the future. :-)