From owner-freebsd-doc@FreeBSD.ORG Thu Feb 3 03:30:31 2005 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 57A8D16A4CE for ; Thu, 3 Feb 2005 03:30:31 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FF9C43D3F for ; Thu, 3 Feb 2005 03:30:29 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b170.otenet.gr [212.205.244.178]) j133UKY8005518; Thu, 3 Feb 2005 05:30:26 +0200 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id j133UEFX004664; Thu, 3 Feb 2005 05:30:14 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id j133UDwd004659; Thu, 3 Feb 2005 05:30:13 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 3 Feb 2005 05:30:13 +0200 From: Giorgos Keramidas To: Graham Dresch Message-ID: <20050203033013.GA3211@gothmog.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: freebsd-doc@freebsd.org Subject: Re: Error in Handbook X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Feb 2005 03:30:31 -0000 On 2005-02-02 14:11, Graham Dresch wrote: > > In Chapter 24 Firewalls: > Section 24.6.5.7: > Example ruleset #2: > > $cmd 020 $skip tcp from any to x.x.x.x 53 out via $pif setup keep-state > ^^^ ^^^^^ > > DNS uses UDP, setup is inapplicable to UDP Actually, DNS uses both UDP and TCP. The size of a DNS UDP packet has an upper limit. If the data that needs to be transferred exceeds that limit, TCP is used. > The line should read: > > $cmd 020 $skip udp from any to x.x.x.x 53 out via $pif keep-state It should probably remain as it is, and a TCP-specific line should be added. Ruleset #2 is supposed to be identical to ruleset #1, which includes these rules: $cmd 00110 allow tcp from any to x.x.x.x 53 out via $pif setup keep-state $cmd 00111 allow udp from any to x.x.x.x 53 out via $pif keep-state - Giorgos