|
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 |
|