blob: 3500025c8028e12ef840a2942a13beca47a44185 [file] [log] [blame]
Patrick McHardy524bb802005-11-19 09:00:03 +00001This modules matches the policy used by IPsec for handling a packet.
2.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +01003\fB\-\-dir\fP {\fBin\fP|\fBout\fP}
Patrick McHardy524bb802005-11-19 09:00:03 +00004Used to select whether to match the policy used for decapsulation or the
5policy that will be used for encapsulation.
6.B in
7is valid in the
8.B PREROUTING, INPUT and FORWARD
9chains,
10.B out
11is valid in the
12.B POSTROUTING, OUTPUT and FORWARD
13chains.
14.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010015\fB\-\-pol\fP {\fBnone\fP|\fBipsec\fP}
Patrick McHardy524bb802005-11-19 09:00:03 +000016Matches if the packet is subject to IPsec processing.
17.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010018\fB\-\-strict\fP
Patrick McHardy524bb802005-11-19 09:00:03 +000019Selects whether to match the exact policy or match if any rule of
20the policy matches the given policy.
21.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010022[\fB!\fP] \fB\-\-reqid\fP \fIid\fP
Patrick McHardy524bb802005-11-19 09:00:03 +000023Matches the reqid of the policy rule. The reqid can be specified with
24.B setkey(8)
25using
26.B unique:id
27as level.
28.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010029[\fB!\fP] \fB\-\-spi\fP \fIspi\fP
Patrick McHardy524bb802005-11-19 09:00:03 +000030Matches the SPI of the SA.
31.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010032[\fB!\fP] \fB\-\-proto\fP {\fBah\fP|\fBesp\fP|\fBipcomp\fP}
Patrick McHardy524bb802005-11-19 09:00:03 +000033Matches the encapsulation protocol.
34.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010035[\fB!\fP] \fB\-\-mode\fP {\fBtunnel\fP|\fBtransport\fP}
Patrick McHardy524bb802005-11-19 09:00:03 +000036Matches the encapsulation mode.
37.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010038[\fB!\fP] \fB\-\-tunnel\-src\fP \fIaddr\fP[\fB/\fP\fImask\fP]
Patrick McHardy37b7c9b2006-01-12 16:14:41 +000039Matches the source end-point address of a tunnel mode SA.
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010040Only valid with \fB\-\-mode tunnel\fP.
Patrick McHardy524bb802005-11-19 09:00:03 +000041.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010042[\fB!\fP] \fB\-\-tunnel\-dst\fP \fIaddr\fP[\fB/\fP\fImask\fP]
Patrick McHardy37b7c9b2006-01-12 16:14:41 +000043Matches the destination end-point address of a tunnel mode SA.
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010044Only valid with \fB\-\-mode tunnel\fP.
Patrick McHardy524bb802005-11-19 09:00:03 +000045.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010046\fB\-\-next\fP
Patrick McHardy524bb802005-11-19 09:00:03 +000047Start the next element in the policy specification. Can only be used with
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010048\fB\-\-strict\fP.