javeree Guru
Joined: 29 Jan 2006 Posts: 453
|
Posted: Fri Sep 20, 2013 11:34 am Post subject: /etc/ntp.conf need both manual data as dhcp data. How ? |
|
|
I have ntpd running with the following in /etc/conf.d
Quote: | # Generated by udhcpc for interface ethm
restrict default noquery notrust nomodify
restrict 127.0.0.1
restrict 195.13.1.153 nomodify notrap noquery
server 195.13.1.153driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log
|
It is good that udhcp writes this, as the upstream server may change.
On the other hand, as I wish this ntpd instance to also be a server for my subnet, I would need an additional line
Quote: | restrict 192.168.4.0 mask 255.255.255.0 notrust nomodify notrap |
If I add that line manually to /etc/ntp.conf, it gets overwritten whenever I get a new ip from upstream.
I guess, I would need to provide that line in some other file, but could not find where I should specify this. |
|