ntp 設定
以前にも設定経験があるntpを設定しました。
OS: Ubuntu Server 8.042
$ sudo apt-get update
$ sudo apt-get install ntp
$ cd /etc
$ sudo cp ntp.conf ntp.conf-ORG
$ sudo vi ntp.conf
----
driftfile /var/lib/ntp/ntp.drift
statistics lopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
# デフォルトで全てのNTPアクセス拒否
restrict default ignore
# ローカルホストからのNTPアクセス許可
restrict 127.0.0.1
# 外部のNTPサーバへのNTPアクセス許可
restrict 133.243.238.163 mask 255.255.255.255 nomodify notrap noquery
restrict 133.243.238.164 mask 255.255.255.255 nomodify notrap noquery
restrict 133.243.238.243 mask 255.255.255.255 nomodify notrap noquery
restrict 133.243.238.244 mask 255.255.255.255 nomodify notrap noquery
restrict 210.173.160.27 mask 255.255.255.255 nomodify notrap noquery
restrict 210.173.160.57 mask 255.255.255.255 nomodify notrap noquery
restrict 210.173.160.87 mask 255.255.255.255 nomodify notrap noquery
# 外部のNTPサーバの指定
server ntp.jst.mfeed.ad.jp
server ntp.nict.jp
server ntp.ubuntu.com
----
--NTPの再起動
$ sudo /etc/init.d/ntp restart
--動作確認
$ sudo ntpq -p
--参照ページ
http://www.kotodama.jp/blog/index.php/2008/03/18/ubuntu-ntp
http://debianj.com/ubuntu/install/ntp.html
http://wiki.livedoor.jp/rockie33jp/d/ntp%A5%B5%A1%BC%A5%D0%A4%CE%C0%DF%C4%EA
「Ubuntu」カテゴリの記事
- Ubuntu Linux 11.04(2011.05.06)
- PPA Ubuntu用 個人的なリポジトリ(2010.08.10)
- Ubuntu本(2010.07.10)
- Ubuntuの日本語環境(2010.06.07)
- Ubuntu 10.4 アプリインストール方法(2010.06.03)
「自宅サーバー」カテゴリの記事
- BUFFALO NAS LS-V2.0TL(2011.07.17)
- VL5 Squid アクセスログ解析(2010.11.15)
- VL5 アクセスログ解析 Webalizer(2010.11.14)
- VL5 Clam AntiVirus(2010.11.03)
- VL5 Gparted(パーティション操作)(2010.10.29)



Comments