Blame extensions/libxt_policy.man

Packit 7b22a4
This modules matches the policy used by IPsec for handling a packet.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-dir\fP {\fBin\fP|\fBout\fP}
Packit 7b22a4
Used to select whether to match the policy used for decapsulation or the
Packit 7b22a4
policy that will be used for encapsulation.
Packit 7b22a4
.B in
Packit 7b22a4
is valid in the
Packit 7b22a4
.B PREROUTING, INPUT and FORWARD
Packit 7b22a4
chains,
Packit 7b22a4
.B out
Packit 7b22a4
is valid in the
Packit 7b22a4
.B POSTROUTING, OUTPUT and FORWARD
Packit 7b22a4
chains.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-pol\fP {\fBnone\fP|\fBipsec\fP}
Packit 7b22a4
Matches if the packet is subject to IPsec processing. \fB\-\-pol none\fP
Packit 7b22a4
cannot be combined with \fB\-\-strict\fP.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-strict\fP
Packit 7b22a4
Selects whether to match the exact policy or match if any rule of
Packit 7b22a4
the policy matches the given policy.
Packit 7b22a4
.PP
Packit 7b22a4
For each policy element that is to be described, one can use one or more of
Packit 7b22a4
the following options. When \fB\-\-strict\fP is in effect, at least one must be
Packit 7b22a4
used per element.
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-reqid\fP \fIid\fP
Packit 7b22a4
Matches the reqid of the policy rule. The reqid can be specified with
Packit 7b22a4
.B setkey(8)
Packit 7b22a4
using
Packit 7b22a4
.B unique:id
Packit 7b22a4
as level.
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-spi\fP \fIspi\fP
Packit 7b22a4
Matches the SPI of the SA.
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-proto\fP {\fBah\fP|\fBesp\fP|\fBipcomp\fP}
Packit 7b22a4
Matches the encapsulation protocol.
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-mode\fP {\fBtunnel\fP|\fBtransport\fP}
Packit 7b22a4
Matches the encapsulation mode.
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-tunnel\-src\fP \fIaddr\fP[\fB/\fP\fImask\fP]
Packit 7b22a4
Matches the source end-point address of a tunnel mode SA.
Packit 7b22a4
Only valid with \fB\-\-mode tunnel\fP.
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-tunnel\-dst\fP \fIaddr\fP[\fB/\fP\fImask\fP]
Packit 7b22a4
Matches the destination end-point address of a tunnel mode SA.
Packit 7b22a4
Only valid with \fB\-\-mode tunnel\fP.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-next\fP
Packit 7b22a4
Start the next element in the policy specification. Can only be used with
Packit 7b22a4
\fB\-\-strict\fP.