Bug 53625

Summary: Error in ipfw manpage (EXAMPLES/SETS OF RULES)
Product: Documentation Reporter: Kostyuk Oleg <cub>
Component: Books & ArticlesAssignee: Maxim Konovalov <maxim>
Status: Closed FIXED    
Severity: Affects Only Me CC: current
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Kostyuk Oleg 2003-06-23 08:10:14 UTC
	The ipfw(8) manpage has an example of using ipfw sets of rules,
        but the example does not work.

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
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
Comment 1 Maxim Konovalov freebsd_committer freebsd_triage 2003-06-23 08:39:23 UTC
Responsible Changed
From-To: freebsd-doc->maxim

Will look at it.
Comment 2 Maxim Konovalov freebsd_committer freebsd_triage 2003-06-23 08:48:37 UTC
State Changed
From-To: open->patched

Fixed in -CURRENT, thanks!
Comment 3 Luigi Rizzo freebsd_committer freebsd_triage 2003-06-29 17:43:32 UTC
State Changed
From-To: patched->closed

Fix merged in RELENG_4 too