Blame bootstrap_ver/extensions/libxt_policy.man

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