Re: [Ubuntu-BR] Servidor NTP

2009-08-27 Por tôpico Jefferson Diego Gomes

Recomendo deixar esse server aqui:
 server pool.ntp.org

Mas, é normal de inicio as estações não sincronizarem.
Quando você inicia o servidor ntp, ele entra em stratum 16.
Espere de 5 a 10 minutos para ele sincronizar e chegar a stratum 2, daí as 
estações sincronizarão.

 Date: Thu, 27 Aug 2009 10:06:43 -0300
 From: gust...@kontact.com.br
 To: ubuntu-br@lists.ubuntu.com
 Subject: [Ubuntu-BR] Servidor NTP
 
 Bom dia pessoal
 
 Estou tentando subir um servidor ntp, instalei o pacote ntp, configurei os 
 servidores externos no qual ele vai sincronizar, porém as maquinas internas 
 da rede não conseguem sincronizar com este servidor.
 
 Onde eu habilito para poder fazer a sincronização, há alguma configuração 
 específica?
 
 
 Segue a baixo a configuração NTP.CONF
 
 Ntp.conf
 
 # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
 
 driftfile /var/lib/ntp/ntp.drift
 
 
 # Enable this if you want statistics to be logged.
 #statsdir /var/log/ntpstats/
 
 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
 
 
 # You do need to talk to an NTP server or two (or three).
 #server ntp.your-provider.example
 
 # pool.ntp.org maps to about 1000 low-stratum NTP servers.  Your server will
 # pick a different set every time it starts up.  Please consider joining the
 # pool: http://www.pool.ntp.org/join.html
 
 server pcdsh05.on.br
 server ntp.cais.rnp.br
 server ntp.puc-rio.br
 server ntp1.pucpr.br
 server ntp.pop-rs.rnp.br
 
 #server 0.debian.pool.ntp.org iburst dynamic
 #server 1.debian.pool.ntp.org iburst dynamic
 #server 2.debian.pool.ntp.org iburst dynamic
 #server 3.debian.pool.ntp.org iburst dynamic
 
 
 # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html 
 for
 # details.  The web page 
 http://support.ntp.org/bin/view/Support/AccessRestrictions
 # might also be helpful.
 #
 # Note that restrict applies to both servers and clients, so a configuration
 # that might be intended to block requests from certain clients could also end
 # up blocking replies from your own upstream servers.
 
 # By default, exchange time with everybody, but don't allow configuration.
 #restrict -4 default kod notrap nomodify nopeer noquery
 #restrict -6 default kod notrap nomodify nopeer noquery
 
 # Local users may interrogate the ntp server more closely.
 #restrict 127.0.0.1
 #restrict ::1
 
 # Clients from this (example!) subnet have unlimited access, but only if
 # cryptographically authenticated.
 # If you want to provide time to your local subnet, change the next line.
 # (Again, the address is an example only.)
 #broadcast 192.168.123.255
 
 # If you want to listen to time broadcasts on your local subnet, de-comment 
 the
 # next lines.  Please do this only if you trust everybody on the network!
 #disable auth
 #broadcastclient
 
 
 
 Obrigado,
 
 Gustavo Tadeu
 Analista de Suporte Técnico
 Phone: (55-11)  3931-2788
 E-Mail: gust...@kontact.com.br
 Visit our website: www.kontact.com.br
 
 
 
 
 -- 
 Mais sobre o Ubuntu em português: http://www.ubuntu-br.org/comece
 
 Lista de discussão Ubuntu Brasil
 Histórico, descadastramento e outras opções:
 https://lists.ubuntu.com/mailman/listinfo/ubuntu-br

_
Descubra todas as novidades do novo Internet Explorer 8
http://brasil.microsoft.com.br/IE8/mergulhe/?utm_source=MSN%3BHotmailutm_medium=Taglineutm_campaign=IE8
-- 
Mais sobre o Ubuntu em português: http://www.ubuntu-br.org/comece

Lista de discussão Ubuntu Brasil
Histórico, descadastramento e outras opções:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-br


Re: [Ubuntu-BR] Servidor NTP

2009-08-27 Por tôpico gustavo
Comigo o NTP server só funcionou depois que reiniciei o servidor e as
maquinas locais. A proposito, você instalou o ntpdate nas maquinas locais?
Se mesmo assim nao funcionar, você pode instalar o pacote versao servidor e
pedir pra sincronizar com o ip do seu servidor de ntp.

Meu arquivo /etc/ntp.conf está assim (na ultima linha restringi o acesso às
maquinas da minha rede local):

driftfile /var/lib/ntp/ntp.drift

statsdir /var/log/ntpstats/
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

server a.ntp.br prefer iburst dynamic
server ntp.ansp.br iburst dynamic
server ntp.cais.rnp.br iburst dynamic
server b.ntp.br iburst dynamic
server c.ntp.br iburst dynamic

restrict a.ntp.br mask 255.255.255.255 nomodoify noquery
restrict ntp.ansp.br mask 255.255.255.255 nomodoify noquery
restrict ntp.cais.rnp.br mask 255.255.255.255 nomodoify noquery
restrict b.ntp.br iburst mask 255.255.255.255 nomodoify noquery
restrict c.ntp.br iburst mask 255.255.255.255 nomodoify noquery

restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
restrict 192.168.5.0 mask 255.255.255.0

abraços,
Gustavo


2009/8/27 Jefferson Diego Gomes jeffersondie...@hotmail.com


 Recomendo deixar esse server aqui:
  server pool.ntp.org

 Mas, é normal de inicio as estações não sincronizarem.
 Quando você inicia o servidor ntp, ele entra em stratum 16.
 Espere de 5 a 10 minutos para ele sincronizar e chegar a stratum 2, daí as
 estações sincronizarão.

  Date: Thu, 27 Aug 2009 10:06:43 -0300
  From: gust...@kontact.com.br
  To: ubuntu-br@lists.ubuntu.com
  Subject: [Ubuntu-BR] Servidor NTP
 
  Bom dia pessoal
 
  Estou tentando subir um servidor ntp, instalei o pacote ntp, configurei
 os servidores externos no qual ele vai sincronizar, porém as maquinas
 internas da rede não conseguem sincronizar com este servidor.
 
  Onde eu habilito para poder fazer a sincronização, há alguma configuração
 específica?
 
 
  Segue a baixo a configuração NTP.CONF
 
  Ntp.conf
 
  # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
 
  driftfile /var/lib/ntp/ntp.drift
 
 
  # Enable this if you want statistics to be logged.
  #statsdir /var/log/ntpstats/
 
  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
 
 
  # You do need to talk to an NTP server or two (or three).
  #server ntp.your-provider.example
 
  # pool.ntp.org maps to about 1000 low-stratum NTP servers.  Your server
 will
  # pick a different set every time it starts up.  Please consider joining
 the
  # pool: http://www.pool.ntp.org/join.html
 
  server pcdsh05.on.br
  server ntp.cais.rnp.br
  server ntp.puc-rio.br
  server ntp1.pucpr.br
  server ntp.pop-rs.rnp.br
 
  #server 0.debian.pool.ntp.org iburst dynamic
  #server 1.debian.pool.ntp.org iburst dynamic
  #server 2.debian.pool.ntp.org iburst dynamic
  #server 3.debian.pool.ntp.org iburst dynamic
 
 
  # Access control configuration; see
 /usr/share/doc/ntp-doc/html/accopt.html for
  # details.  The web page 
 http://support.ntp.org/bin/view/Support/AccessRestrictions
  # might also be helpful.
  #
  # Note that restrict applies to both servers and clients, so a
 configuration
  # that might be intended to block requests from certain clients could
 also end
  # up blocking replies from your own upstream servers.
 
  # By default, exchange time with everybody, but don't allow
 configuration.
  #restrict -4 default kod notrap nomodify nopeer noquery
  #restrict -6 default kod notrap nomodify nopeer noquery
 
  # Local users may interrogate the ntp server more closely.
  #restrict 127.0.0.1
  #restrict ::1
 
  # Clients from this (example!) subnet have unlimited access, but only if
  # cryptographically authenticated.
  # If you want to provide time to your local subnet, change the next line.
  # (Again, the address is an example only.)
  #broadcast 192.168.123.255
 
  # If you want to listen to time broadcasts on your local subnet,
 de-comment the
  # next lines.  Please do this only if you trust everybody on the network!
  #disable auth
  #broadcastclient
 
 
 
  Obrigado,
 
  Gustavo Tadeu
  Analista de Suporte Técnico
  Phone: (55-11)  3931-2788
  E-Mail: gust...@kontact.com.br
  Visit our website: www.kontact.com.br
 
 
 
 
  --
  Mais sobre o Ubuntu em português: http://www.ubuntu-br.org/comece
 
  Lista de discussão Ubuntu Brasil
  Histórico, descadastramento e outras opções:
  https://lists.ubuntu.com/mailman/listinfo/ubuntu-br

 _
 Descubra todas as novidades do novo Internet Explorer 8

 http://brasil.microsoft.com.br/IE8/mergulhe/?utm_source=MSN%3BHotmailutm_medium=Taglineutm_campaign=IE8