SSブログ

ntpdの設定メモ [Linux]

※OSはVine Linux 4.2。

# rpm -q ntp
ntp-4.2.0-10vl4

# vi /etc/ntp.conf

server ntp.nict.jp server ntp.jst.mfeed.ad.jp server 127.127.1.0 # local clock fudge 127.127.1.0 stratum 10 driftfile /etc/ntp/drift multicastclient # listen on default 224.0.1.1 broadcastdelay 0.008 authenticate no

# touch /etc/ntp/drift

# /etc/init.d/ntpd start

# /sbin/chkconfig ntpd on

# /usr/sbin/ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*ntp.nict.jp     .NICT.           1 u   23   64  377   12.929  -11.842   2.287
+ntp.jst.mfeed.a 210.173.160.86   2 u   17   64  377    8.081   -9.032   2.538
 LOCAL(0)        LOCAL(0)        10 l    9   64  377    0.000    0.000   0.004

# /sbin/iptables -I RH-Firewall-1-INPUT 13 -p udp -m state --state NEW -m udp --dport 123 -j ACCEPT
※REJECTの前、13番目に入れるように設定。

nice!(0)  コメント(0)  トラックバック(0) 
共通テーマ:パソコン・インターネット

nice! 0

コメント 0

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

トラックバック 0

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。