[ntp:questions] server returns a permission denied error

azharali20 at gmail.com azharali20 at gmail.com
Tue Jan 14 13:01:39 UTC 2014


On Friday, March 21, 2003 4:50:44 AM UTC+5:30, Ole wrote:
> Redhat 7.3
> 
> Firewall computer is connected to the internet, and gets nptd update from a
> server on the internet( and this works fine). But when i try to get the
> computers on the local net, to use my firewall like a ntp server, i get the
> msg:
> 
> ntpd_initres[1033]: server returns a permission denied error
> 
> i dont have a firewall on the local computer, but i use iptables with the
> firewall, and i have this rule:
> 
> iptables -A INPUT -i $INT_INTERFACE -p udp -s $INTERNAL_NET --sport 123 -d
> $INT_IPADDR --dport 123 -j ACCEPT
> iptables -A INPUT -i $INT_INTERFACE -p udp -s $INTERNAL_NET --sport 123 -d
> $INT_IPADDR --dport $HIGHPORTS -j ACCEPT
> 
> whit netstat:
> 
> netstat -a | grep ntp
> udp        0      0 localhost.localdo:32769 localhost.localdoma:ntp
> ESTABLISHED
> udp        0      0 fireballs.gurustati:ntp *:*
> udp        0      0 gurustation.hiof.no:ntp *:*
> udp        0      0 localhost.localdoma:ntp *:*
> udp        0      0 *:ntp                   *:*
> 
> -----------------
> firewall ntp.conf:
> 
> 
> server ntp.uio.no  version 3  prefer
> server ntp1.gbg.netnod.se
> server ntp2.gbg.netnod.se
> 
> #During operation ntpd measures and corrects for incidental clock frequency
> error and writes the current value to a file called by default
> /etc/ntp.drift
> driftfile /etc/ntp.drift
> 
> 
> client ntp.conf
> 
> server 192.168.0.1  version 3  prefer
> 
> #During operation ntpd measures and corrects for incidental clock frequency
> error and writes the current value to a file called by default
> /etc/ntp.drift
> driftfile /etc/ntp.drift
> 
> ------------------
> 
> 
> Do i need somekind of key, ore broadcast settings ?
> 
> 
> Thx for helping
> 
> -Ole

https://major.io/2008/02/20/ntpd_initres-ntpd-returns-a-permission-denied-error/



More information about the questions mailing list