o Fix sets of rules usage example.
PR: docs/53625 Submitted by: Kostyuk Oleg <cub@cub.org.ua> MFC after: 1 week
This commit is contained in:
parent
2582fc45ec
commit
064d54a248
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116715
@ -2015,9 +2015,9 @@ on a net with per-host limits, rather than per-network limits:
|
|||||||
.Ss SETS OF RULES
|
.Ss SETS OF RULES
|
||||||
To add a set of rules atomically, e.g. set 18:
|
To add a set of rules atomically, e.g. set 18:
|
||||||
.Pp
|
.Pp
|
||||||
.Dl "ipfw disable set 18"
|
.Dl "ipfw set disable 18"
|
||||||
.Dl "ipfw add NN set 18 ... # repeat as needed"
|
.Dl "ipfw add NN set 18 ... # repeat as needed"
|
||||||
.Dl "ipfw enable set 18"
|
.Dl "ipfw set enable 18"
|
||||||
.Pp
|
.Pp
|
||||||
To delete a set of rules atomically the command is simply:
|
To delete a set of rules atomically the command is simply:
|
||||||
.Pp
|
.Pp
|
||||||
@ -2025,9 +2025,9 @@ To delete a set of rules atomically the command is simply:
|
|||||||
.Pp
|
.Pp
|
||||||
To test a ruleset and disable it and regain control if something goes wrong:
|
To test a ruleset and disable it and regain control if something goes wrong:
|
||||||
.Pp
|
.Pp
|
||||||
.Dl "ipfw disable set 18"
|
.Dl "ipfw set disable 18"
|
||||||
.Dl "ipfw add NN set 18 ... # repeat as needed"
|
.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
|
.Pp
|
||||||
Here if everything goes well, you press control-C before the "sleep"
|
Here if everything goes well, you press control-C before the "sleep"
|
||||||
terminates, and your ruleset will be left active. Otherwise, e.g. if
|
terminates, and your ruleset will be left active. Otherwise, e.g. if
|
||||||
|
Loading…
Reference in New Issue
Block a user