From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 5 16:57:43 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B8F816A420 for ; Thu, 5 Jan 2006 16:57:43 +0000 (GMT) (envelope-from dwmalone@maths.tcd.ie) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id A56D243DB7 for ; Thu, 5 Jan 2006 16:57:10 +0000 (GMT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie ([134.226.81.10] helo=walton.maths.tcd.ie) by salmon.maths.tcd.ie with SMTP id ; 5 Jan 2006 16:57:06 +0000 (GMT) Date: Thu, 5 Jan 2006 16:57:05 +0000 From: David Malone To: Dan Joumaa Message-ID: <20060105165705.GA37331@walton.maths.tcd.ie> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i Sender: dwmalone@maths.tcd.ie Cc: freebsd-hackers@freebsd.org Subject: Re: Invalid ipfirewall rule? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jan 2006 16:57:43 -0000 On Wed, Jan 04, 2006 at 05:59:44PM -0700, Dan Joumaa wrote: > entry->fw_prot = IPPROTO_TCP|IPPROTO_UDP; This may not be your problem, but I think you need two rules to do this the protocol number is a 8 bit number, not a bit field (ie. IPPROTO_TCP is 6 and IPPROTO_UDP is 17, so oring them together doesn't make sense). David.