Using "limited" for ntp in this way denies client access. Issue #3384

This commit is contained in:
jim-p 2014-02-03 09:34:06 -05:00
parent be9f77941d
commit ca79de534b

View File

@ -1392,8 +1392,8 @@ function system_ntp_configure($start_ntpd=true) {
$ntpcfg .= "statsdir {$statsdir}\n";
$ntpcfg .= "logconfig =syncall +clockall\n";
$ntpcfg .= "driftfile {$driftfile}\n";
$ntpcfg .= "restrict default kod limited nomodify notrap nopeer\n";
$ntpcfg .= "restrict -6 default kod limited nomodify notrap nopeer\n";
$ntpcfg .= "restrict default kod nomodify notrap nopeer\n";
$ntpcfg .= "restrict -6 default kod nomodify notrap nopeer\n";
if (empty($config['ntpd']['interface']))
if (is_array($config['installedpackages']['openntpd']) && !empty($config['installedpackages']['openntpd']['config'][0]['interface']))