Joined: 29 Jan 2006
|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
|# Generated by udhcpc for interface ethm
restrict default noquery notrust nomodify
restrict 188.8.131.52 nomodify notrap noquery
server 184.108.40.206driftfile /var/lib/ntp/ntp.drift
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
|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.