From owner-freebsd-doc@FreeBSD.ORG Mon Jun 23 00:10:16 2003 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D70E437B401 for ; Mon, 23 Jun 2003 00:10:16 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBF1F43FB1 for ; Mon, 23 Jun 2003 00:10:15 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h5N7AFUp040793 for ; Mon, 23 Jun 2003 00:10:15 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h5N7AFBT040792; Mon, 23 Jun 2003 00:10:15 -0700 (PDT) Resent-Date: Mon, 23 Jun 2003 00:10:15 -0700 (PDT) Resent-Message-Id: <200306230710.h5N7AFBT040792@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kostyuk Oleg Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 202BC37B401; Mon, 23 Jun 2003 00:07:07 -0700 (PDT) Received: from shop.digma.com.ua (shop.digma.com.ua [217.12.194.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id B62E143FCB; Mon, 23 Jun 2003 00:07:01 -0700 (PDT) (envelope-from cub@cub.org.ua) Received: from cub.org.ua (demani.digma [172.22.5.7]) by shop.digma.com.ua (8.12.6p2/8.12.6) with ESMTP id h5N76vrH098037; Mon, 23 Jun 2003 10:06:57 +0300 (EEST) (envelope-from cub@cub.org.ua) Received: from demani.digma (localhost [127.0.0.1]) by cub.org.ua (8.12.9/8.12.9) with ESMTP id h5N76Qwx048329; Mon, 23 Jun 2003 10:06:26 +0300 (EEST) (envelope-from cub@demani.digma) Received: (from cub@localhost) by demani.digma (8.12.9/8.12.9/Submit) id h5N76Pnq048328; Mon, 23 Jun 2003 10:06:25 +0300 (EEST) (envelope-from cub) Message-Id: <200306230706.h5N76Pnq048328@demani.digma> Date: Mon, 23 Jun 2003 10:06:25 +0300 (EEST) From: Kostyuk Oleg To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: freebsd-current@FreeBSD.org Subject: docs/53625: Error in ipfw manpage (EXAMPLES/SETS OF RULES) X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Kostyuk Oleg List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jun 2003 07:10:17 -0000 >Number: 53625 >Category: docs >Synopsis: Error in ipfw manpage (EXAMPLES/SETS OF RULES) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 23 00:10:14 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Kostyuk Oleg >Release: FreeBSD 5.1-RELEASE i386 >Organization: >Environment: System: FreeBSD demani.digma 5.1-RELEASE FreeBSD 5.1-RELEASE #3: Mon Jun 9 12:19:59 EEST 2003 root@demani.digma:/usr/src/sys/i386/compile/CUB i386 >Description: The ipfw(8) manpage has an example of using ipfw sets of rules, but the example does not work. >How-To-Repeat: Try to execute commands from EXAMPLES/SETS OF RULES manpage section # id uid=0(root) gid=0(wheel) groups=0(wheel), 5(operator) # ipfw disable set 18 ipfw: unrecognize enable/disable keyword: set >Fix: Patch for manpage --- /usr/src/sbin/ipfw/ipfw.8 Sat Mar 15 03:13:00 2003 +++ ipfw.8 Mon Jun 23 09:50:59 2003 @@ -2001,9 +2001,9 @@ .Ss SETS OF RULES To add a set of rules atomically, e.g. set 18: .Pp -.Dl "ipfw disable set 18" +.Dl "ipfw set disable 18" .Dl "ipfw add NN set 18 ... # repeat as needed" -.Dl "ipfw enable set 18" +.Dl "ipfw set enable 18" .Pp To delete a set of rules atomically the command is simply: .Pp @@ -2011,9 +2011,9 @@ .Pp To test a ruleset and disable it and regain control if something goes wrong: .Pp -.Dl "ipfw disable set 18" +.Dl "ipfw set disable 18" .Dl "ipfw add NN set 18 ... # repeat as needed" -.Dl "ipfw enable set 18 ; echo done; sleep 30 && ipfw disable set 18" +.Dl "ipfw set enable 18 ; echo done; sleep 30 && ipfw set disable 18" .Pp Here if everything goes well, you press control-C before the "sleep" terminates, and your ruleset will be left active. Otherwise, e.g. if >Release-Note: >Audit-Trail: >Unformatted: