Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Feb 2005 15:38:53 +0100
From:      Erik Norgaard <norgaard@locolomo.org>
To:        dick hoogendijk <dick@nagual.st>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ipfilter and ntp sserver
Message-ID:  <420F667D.9040402@locolomo.org>
In-Reply-To: <20050213142036.09fb3b72.dick@nagual.st>
References:  <20050213142036.09fb3b72.dick@nagual.st>

next in thread | previous in thread | raw e-mail | index | archive | help
dick hoogendijk wrote:
> I want my local ntp server up and running, so I put in /etc/rc.conf:
> xntpd_enable="YES" but waht are the right rules for ipfilter? Someting
> like:
> 
> # Allow out ntp traffic
> pass out quick on rl0 proto tcp from any to any port = 123 flags S keep
> state
> pass out quick on rl0 proto udp from any to any port = 123 keep state
> 
> Or do I have to open some ports incoming as well?

The above allows your server to request time from remote servers, either 
using ntpdate or ntpd. If you want to serve other workstations then you 
need to accept incoming connections.

> [ I think I need a good book about ipfilter ;-) ]

the ipfilter howto is good, allthough the nat-part can be a bit obscure.

> I mentioned tcp/udp because I read in /etc/services that ntp uses both.

ntp is udp-only, see rfc1305.

> Does keep state mean that automagically all incoming traffic will be OK
> (for ntp)

no. keep state means that when your server syncronizes with a remote ntp 
server, the reply packest are accepted. It does not allow incoming 
connections.

Cheers, Erik
-- 
Ph: +34.666334818                           web: http://www.locolomo.org
S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt
Subject ID:  A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9
Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?420F667D.9040402>