X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PlanetLabConf%2Fntp.conf.php;h=b687fde8db6ce9458466a0d931e2906b5401bd0d;hb=e82b6bdedbb13fee163845c8eaa97b0e385871f1;hp=4945fb0c1f544300abeecdbad061d78d0bea6b0b;hpb=7164151d1ef862940830925fe7775527489e37e0;p=nodeconfig.git diff --git a/PlanetLabConf/ntp.conf.php b/PlanetLabConf/ntp.conf.php index 4945fb0..b687fde 100755 --- a/PlanetLabConf/ntp.conf.php +++ b/PlanetLabConf/ntp.conf.php @@ -49,6 +49,14 @@ if (!empty($sites)) { print( "# node $hostname site $site_name $mylat $mylong $model\n"); print( "driftfile /var/lib/ntp/ntp.drift\n" ); print( "statsdir /var/log/ntpstats/\n" ); +print( "disable monitor\n" ); +print( "# Permit time synchronization with our time source, but do not\n"); +print( "# permit the source to query or modify the service on this system.\n"); +print( "restrict default kod nomodify notrap nopeer noquery\n"); +print( "restrict -6 default kod nomodify notrap nopeer noquery\n"); +print( "restrict 127.0.0.1\n"); +print( "restrict -6 ::1\n"); + if (is_numeric(array_search($model, $problem_models))) { print( "tinker stepout 0\n" ); }