From owner-freebsd-ipfw@FreeBSD.ORG Wed Aug 5 05:23:24 2009 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71AF1106564A for ; Wed, 5 Aug 2009 05:23:24 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [220.233.188.227]) by mx1.freebsd.org (Postfix) with ESMTP id DA2248FC08 for ; Wed, 5 Aug 2009 05:23:23 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id n7558LxV065408; Wed, 5 Aug 2009 15:08:21 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Wed, 5 Aug 2009 15:08:20 +1000 (EST) From: Ian Smith To: Freddie Cash In-Reply-To: Message-ID: <20090805150508.B19821@sola.nimnet.asn.au> References: <4A78B6DD.7060908@chlastak.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-ipfw@freebsd.org, mira@chlastak.cz Subject: Re: Matching all protocols in /etc/protocols (1 rule) X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2009 05:23:24 -0000 On Tue, 4 Aug 2009, Freddie Cash wrote: > 2009/8/4 Miroslav Chlastak > > > Hi all, > > > > it's possible to create one rule to pass (or disable) all traffic (all > > protocols - from /etc/protocols)? > > I know, that I can use "all" keyword. But this keyword "all" mean only > > "tcp, udp, icmp" protocols. > > But there is more then tcp, udp and icmp protocol (gre,esp,ospf,...). If I > > can allow all of this protocols, so at the moment I have to create 134 rules > > (1 rule for 1 protocol from /etc/protocols). > > > > If this is for IPFW, just use "ip" or "any". That will match any IP > packets, regardless of what protocol data is inside the packet. To be fussy, 'any' applies to addresses; 'ip' or 'all' is what's needed here: protocol: [not] protocol-name | protocol-number An IPv4 protocol specified by number or name (for a complete list see /etc/protocols). The ip or all keywords mean any protocol will match. cheers, Ian