Blame extensions/libxt_conntrack.man

Packit 7b22a4
This module, when combined with connection tracking, allows access to the
Packit 7b22a4
connection tracking state for this packet/connection.
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-ctstate\fP \fIstatelist\fP
Packit 7b22a4
\fIstatelist\fP is a comma separated list of the connection states to match.
Packit 7b22a4
Possible states are listed below.
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-ctproto\fP \fIl4proto\fP
Packit 7b22a4
Layer-4 protocol to match (by number or name)
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-ctorigsrc\fP \fIaddress\fP[\fB/\fP\fImask\fP]
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-ctorigdst\fP \fIaddress\fP[\fB/\fP\fImask\fP]
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-ctreplsrc\fP \fIaddress\fP[\fB/\fP\fImask\fP]
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-ctrepldst\fP \fIaddress\fP[\fB/\fP\fImask\fP]
Packit 7b22a4
Match against original/reply source/destination address
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-ctorigsrcport\fP \fIport\fP[\fB:\fP\fIport\fP]
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-ctorigdstport\fP \fIport\fP[\fB:\fP\fIport\fP]
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-ctreplsrcport\fP \fIport\fP[\fB:\fP\fIport\fP]
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-ctrepldstport\fP \fIport\fP[\fB:\fP\fIport\fP]
Packit 7b22a4
Match against original/reply source/destination port (TCP/UDP/etc.) or GRE key.
Packit 7b22a4
Matching against port ranges is only supported in kernel versions above 2.6.38.
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-ctstatus\fP \fIstatelist\fP
Packit 7b22a4
\fIstatuslist\fP is a comma separated list of the connection statuses to match.
Packit 7b22a4
Possible statuses are listed below.
Packit 7b22a4
.TP
Packit 7b22a4
[\fB!\fP] \fB\-\-ctexpire\fP \fItime\fP[\fB:\fP\fItime\fP]
Packit 7b22a4
Match remaining lifetime in seconds against given value or range of values
Packit 7b22a4
(inclusive)
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-ctdir\fP {\fBORIGINAL\fP|\fBREPLY\fP}
Packit 7b22a4
Match packets that are flowing in the specified direction. If this flag is not
Packit 7b22a4
specified at all, matches packets in both directions.
Packit 7b22a4
.PP
Packit 7b22a4
States for \fB\-\-ctstate\fP:
Packit 7b22a4
.TP
Packit 7b22a4
\fBINVALID\fP
Packit 7b22a4
The packet is associated with no known connection.
Packit 7b22a4
.TP
Packit 7b22a4
\fBNEW\fP
Packit 7b22a4
The packet has started a new connection or otherwise associated
Packit 7b22a4
with a connection which has not seen packets in both directions.
Packit 7b22a4
.TP
Packit 7b22a4
\fBESTABLISHED\fP
Packit 7b22a4
The packet is associated with a connection which has seen packets
Packit 7b22a4
in both directions.
Packit 7b22a4
.TP
Packit 7b22a4
\fBRELATED\fP
Packit 7b22a4
The packet is starting a new connection, but is associated with an
Packit 7b22a4
existing connection, such as an FTP data transfer or an ICMP error.
Packit 7b22a4
.TP
Packit 7b22a4
\fBUNTRACKED\fP
Packit 7b22a4
The packet is not tracked at all, which happens if you explicitly untrack it
Packit 7b22a4
by using \-j CT \-\-notrack in the raw table.
Packit 7b22a4
.TP
Packit 7b22a4
\fBSNAT\fP
Packit 7b22a4
A virtual state, matching if the original source address differs from the reply
Packit 7b22a4
destination.
Packit 7b22a4
.TP
Packit 7b22a4
\fBDNAT\fP
Packit 7b22a4
A virtual state, matching if the original destination differs from the reply
Packit 7b22a4
source.
Packit 7b22a4
.PP
Packit 7b22a4
Statuses for \fB\-\-ctstatus\fP:
Packit 7b22a4
.TP
Packit 7b22a4
\fBNONE\fP
Packit 7b22a4
None of the below.
Packit 7b22a4
.TP
Packit 7b22a4
\fBEXPECTED\fP
Packit 7b22a4
This is an expected connection (i.e. a conntrack helper set it up).
Packit 7b22a4
.TP
Packit 7b22a4
\fBSEEN_REPLY\fP
Packit 7b22a4
Conntrack has seen packets in both directions.
Packit 7b22a4
.TP
Packit 7b22a4
\fBASSURED\fP
Packit 7b22a4
Conntrack entry should never be early-expired.
Packit 7b22a4
.TP
Packit 7b22a4
\fBCONFIRMED\fP
Packit 7b22a4
Connection is confirmed: originating packet has left box.