[ntp:questions] Errors in "restrict" lines

David Taylor david-taylor at blueyonder.co.uk.invalid
Mon Jun 26 06:31:59 UTC 2017


Folks,

I will be the first to admit that I'm not very conversant with 
"restrict" lines, so perhaps the following will be obvious to you!  I 
have in lines 34 onwards of my ntp.conf:

# Suggestions for NTP restrictions:
restrict source notrap nomodify nopeer query
restrict 127.0.0.1
restrict ::1
restrict 192.168.0.0 mask 255.255.255.0 peer

and NTP is giving the following error messages:

Jun 26 05:58:10 raspi-4 ntpd[2776]: line 35 column 29 syntax error, 
unexpected T_String, expecting T_EOC
Jun 26 05:58:10 raspi-4 ntpd[2776]: syntax error in /etc/ntp.conf line 
35, column 29
Jun 26 05:58:10 raspi-4 ntpd[2776]: line 38 column 32 syntax error, 
unexpected T_Peer, expecting T_EOC
Jun 26 05:58:10 raspi-4 ntpd[2776]: syntax error in /etc/ntp.conf line 
38, column 32

I am at a loss to explain these errors....

Can you help?

If it's some non-printing character, how in Debian (Raspbian) Linux 
could I dump the file in hex to check for that?


-- 
Thanks,
David
Web: http://www.satsignal.eu



More information about the questions mailing list