summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamiel Dobbelaar <camield@cvs.openbsd.org>2006-12-01 07:23:27 +0000
committerCamiel Dobbelaar <camield@cvs.openbsd.org>2006-12-01 07:23:27 +0000
commit7323470b9aa1f2995cb690234e79e722bc67fa6a (patch)
treeb7752c5e2d4ce0bdb59fdbb1ab76ee59a72aef9f
parent83beb1729251f68bc248745d2599d160fd547f94 (diff)
Correct the explanation of NAT evaluation order. binat is always first,
then rdr on inbound packets or nat on outbound packets. This is _not_ necessarily the same order in which the rules are defined in the ruleset. ok jmc dhartmei henning
-rw-r--r--share/man/man5/pf.conf.515
1 files changed, 12 insertions, 3 deletions
diff --git a/share/man/man5/pf.conf.5 b/share/man/man5/pf.conf.5
index a27581ebcef..bb210fc7fc0 100644
--- a/share/man/man5/pf.conf.5
+++ b/share/man/man5/pf.conf.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pf.conf.5,v 1.375 2006/11/29 07:03:58 jmc Exp $
+.\" $OpenBSD: pf.conf.5,v 1.376 2006/12/01 07:23:26 camield Exp $
.\"
.\" Copyright (c) 2002, Daniel Hartmeier
.\" All rights reserved.
@@ -1126,8 +1126,17 @@ Port numbers are never translated with a
.Ar binat
rule.
.Pp
-For each packet processed by the translator, the translation rules are
-evaluated in sequential order, from first to last.
+Evaluation order of the translation rules is dependent on the type
+of the translation rules and of the direction of a packet.
+.Ar binat
+rules are always evaluated first.
+Then either the
+.Ar rdr
+rules are evaluated on an inbound packet or the
+.Ar nat
+rules on an outbound packet.
+Rules of the same type are evaluated in the same order in which they
+appear in the ruleset.
The first matching rule decides what action is taken.
.Pp
The