FreeBSD ntpd PPS setup (PPS slave)

Mon 01 May 2006 : FreeBSD ntpd PPS setup (PPS slave)

I set up a new ntp server at work, and it is coupled to the meinberg gps timestandard. The meinberg is a very reliable time source but I don't want to invite the entire Internet to come over and bash it.

So an 'old' (2001) Dell PowerEdge 2550 got repurposed as FreeBSD ntp server. A lot nicer than it's previous role: windows domain controller.

The kernel:

FreeBSD metronoom 5.4-RELEASE-p13 FreeBSD 5.4-RELEASE-p13 #2: Fri Apr 21 16:09:21 UTC 2006 root@metronoom:/usr/obj/usr/src/sys/METRONOOM i386

The special bit in the kernel config is

options         PPS_SYNC                # for ntpd
in devfs.conf I link cuaa0 (first serial port) to pps0, so ntpd can open /dev/pps0 which is for clockdriver 22:
link cuaa0 pps0
And ntp.conf:
# get time from stardate

server stardate.cs.uu.nl prefer iburst

driftfile /var/ntp/ntp.drift

# fudge a local clock at stratum 10

server  127.127.1.0
fudge   127.127.1.0 stratum 10

# talk pps

enable pps kernel auth

server 127.127.22.0
#  minpoll 4 maxpoll 4 version 4
fudge  127.127.22.0 flag3 1
fudge  127.127.22.0 refid PPS

# access restrictions . localhost and staff can check everything. rest can
# get the time

restrict 127.0.0.1 
restrict 131.211.80.0 mask 255.255.254.0
restrict default kod notrap nopeer noquery

keys /etc/ntp.keys
trustedkey 3

# moeltiepaas!

broadcast 224.0.1.1 ttl 2 key 3

# announce policy

setvar access_policy="experimental server not suitable for production" default

Most recent entries
Voorsprong door achterstand: electriciteitsnetwerken worden fiberleveranciers
Last updated Tue 13 July 2010
Witnessing an attack on an Asterisk server
Last updated Thu 05 February 2009
Using the Netgear EVA 8000 HD with a linux server
Last updated Sun 18 January 2009
Review Netgear EVA 8000 HD
Last updated Sun 18 January 2009
De rol van Asterisk in de telefoniewereld
Last updated Mon 15 September 2008
My take on Microsoft wants to buy yahoo
Last updated Fri 01 February 2008
The server room as multistable climate system
Last updated Wed 09 January 2008
Comparing tvtime and XawTV
Last updated Fri 30 November 2007
From VIDEO_TS to working video DVD in Linux
Last updated Tue 27 November 2007
Configuring ssh on a Netgear GSM7224/GSM7248 switch
Last updated Thu 29 March 2007
All entries


Copyright
Valid HTML 4.01!
Valid CSS!
IPv6 ready
The Irregular is an irregular column-like something which I write. Any opinion in The Irregular is my own personal opinion and has nothing to do with any current, past or future employers or any other person/company I may have contact with.

I consider it my copyright what I write here, please get in touch with me if you want to copy/republish it.

Koos van den Hout, koos@kzdoos.xs4all.nl
The Virtual Bookcase Camp Wireless webcam.idefix.net Weather maps