howto setup a ntpd (client and server) under OpenBSD 3.3 - to hf_linux
时间:2003-09-03
来源:互联网
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/.../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
This is only a resume from http://www.aboveground.cx/~rjmooney/.../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
作者: werix 发布时间: 2003-09-03
嘿嘿,有个BSD版呀,虽然多数兄弟是在用FreeBSD。
我给你转过去好了,建议BSD版主加精。
我给你转过去好了,建议BSD版主加精。
作者: carlos 发布时间: 2003-09-03
thank you!wrx.
carlos is 好人啊
carlos is 好人啊
作者: hf_linux 发布时间: 2003-09-04
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28