LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1955|回复: 2

howto setup a ntpd (client and server) under OpenBSD 3.3 - to hf_linux

[复制链接]
发表于 2003-9-3 01:45:08 | 显示全部楼层 |阅读模式
First of all, excuses me to post this message here, since there are no OpenBSD forum on linuxsir, and I know hf_linux come here everyday... Carlos, don't kill me pls ;^P

This is only a resume from http://www.aboveground.cx/~rjmooney/projects/misc/ntp.html

1. frist check out your /etc/localtime be sure it point to your timezone
ls -al /etc/localtime
if it's wrong with you, just remove this file and recreate it with ln -fs /usr/share/zoneinfo/..... /etc/localtime

2. go to /usr/ports/net/ntp/devel
make install clean

3. (only needed if you want to set your OpenBSD as a NTP server)
the following line is my config, should change ip server...
cat /etc/ntp.conf

server 129.132.2.21

restrict default ignore
restrict 129.132.2.21 noquery nomodify notrap nopeer
restrict 127.0.0.1 nomodify

4. /usr/local/sbin/ntpdate -b 129.132.2.21

5. at /etc/rc.conf
ntpd=YES
ntpdate_flags="/etc/ntp.conf"

6. If you want to provide (or deny)  NTP access
add to /etc/ntp.conf
restrict 192.168.1.0/24 mask 255.255.255.0 nomodify nopeer

more info, read url .

Best regards

Wrx
发表于 2003-9-3 09:37:48 | 显示全部楼层
嘿嘿,有个BSD版呀,虽然多数兄弟是在用FreeBSD。

我给你转过去好了,建议BSD版主加精。
发表于 2003-9-4 18:28:58 | 显示全部楼层
thank you!wrx.
carlos is 好人啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表