Blame extensions/libxt_policy.man

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