ntp-server (ntp.conf)

Configuração básica do servidor de hora

Categoria: Miscelânea

Software: ntp-server

[ Hits: 11.006 ]

Por: Jeferson Luis Almeida de Oliveira


Aqui está a configuração do meu ntp.conf.

Achei muito pouco sobre o arquivo de configuração do ntp-server. Li um pouco e fiz um mesclado de dois artigos que li aqui no VOL.

Primeiro instale o ntp-server

$apt-get install ntp-server

e depois edite o arquivo /etc/ntp.conf como segue  abaixo, com alguns comentários importantes:

Nos clientes basta agendar no cron os dias e horários para atualização de hora.

Espero ajudar a quem precisa!!!!!


# /etc/ntp.conf, configuration for ntpd

driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/

#########################################
# habilitar atualização de dias e de meses nos clientes
#########################################
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

#####################################
####lista de servidores de hora mundial se quiser incluir mais de um servidor fica a critério###########
#######################################

server pool.ntp.org
#############################################
#pra ele atualizar a hora por si só, no caso de servidor acima falhar
#############################################
server 127.127.1.0
fudge 127.127.1.0 stratum 13

############################################
# restringir somente para acesso
############################################
restrict default kod notrap nomodify nopeer noquery

########################################
# restringir somente para a esta classe de rede
##########################################

restrict 127.0.0.1 nomodify
restrict 192.168.1.0 mask 255.255.255.0 nomodify #notrap

############################################
#broadcast da sua rede
############################################
broadcast 192.168.3.255

#############################################
#desabilitar autenticação
#############################################
disable auth
broadcastclient
broadcastdelay  0.008
  


Comentários

Nenhum comentário foi encontrado.


Contribuir com comentário

  



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts