aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2005-06-04 19:04:31 +0000
committerBrian Feldman <green@FreeBSD.org>2005-06-04 19:04:31 +0000
commit5278d40bcc1cf1f69254d3e5959b3f35bdc36ae3 (patch)
tree27646b7d5b22022ccd7be153b64a1046b4103f13 /sbin
parente8b2943fabf85fae379a225da119b736fb14884f (diff)
downloadsrc-5278d40bcc1cf1f69254d3e5959b3f35bdc36ae3.tar.gz
src-5278d40bcc1cf1f69254d3e5959b3f35bdc36ae3.zip
Better explain, then actually implement the IPFW ALTQ-rule first-match
policy. It may be used to provide more detailed classification of traffic without actually having to decide its fate at the time of classification. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=146962
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ipfw/ipfw.815
1 files changed, 13 insertions, 2 deletions
diff --git a/sbin/ipfw/ipfw.8 b/sbin/ipfw/ipfw.8
index 55f8b77ce833..86d89d34b44c 100644
--- a/sbin/ipfw/ipfw.8
+++ b/sbin/ipfw/ipfw.8
@@ -565,7 +565,18 @@ processed, it will not be tagged, so it is wise to make your ALTQ
"default" queue policy account for this.
If multiple
.Cm altq
-rules match a single packet, subsequent tags are ignored by ALTQ.
+rules match a single packet, only the first one adds the ALTQ classification
+tag.
+In doing so, traffic may be shaped by using
+.Cm count Cm altq Ar queue
+rules for classification early in the ruleset, then later applying
+the filtering decision.
+For example,
+.Cm check-state
+and
+.Cm keep-state
+rules may come later and provide the actual filtering decisions in
+addition to the fallback ALTQ tag.
.Pp
You must run
.Xr pfctl 8
@@ -573,7 +584,7 @@ to set up the queues before IPFW will be able to look them up by name,
and if the ALTQ disciplines are rearranged, the rules in containing the
queue identifiers in the kernel will likely have gone stale and need
to be reloaded.
-Stale queue identifiers will probably misclassify
+Stale queue identifiers will probably result in misclassification.
.Pp
All system ALTQ processing can be turned on or off via
.Nm