HOWTO setup a small server

NTP (Network Time Protocol Server)

Installation

To install the NTP server, issue the following command:

# apt-get install ntp

Configuration

If you want to use other servers than Debian's default servers as a reference, you will have to comment the lines begining with server in /etc/ntp.conf and add your own servers, e.g.:

Excerpt: /etc/ntp.conf

server ntps1-1.cs.tu-berlin.de
server ntp2.fau.de

Networking Requirements

Prerequisite: Shorewall If you want to allow other hosts to use your server as time server, you will have to allow connections to UDP port 123. Add the following lines to /etc/shorewall/rules:

Excerpt: /etc/shorewall/rules

# NTP
#
ACCEPT		net		$FW		udp	123
#

and restart the packet filter:

# shorewall restart

Back to index.