Imported Upstream version 1.4.14
[platform/upstream/iptables.git] / extensions / libxt_multiport.man
1 This module matches a set of source or destination ports.  Up to 15
2 ports can be specified.  A port range (port:port) counts as two
3 ports.  It can only be used in conjunction with
4 \fB\-p tcp\fP
5 or
6 \fB\-p udp\fP.
7 .TP
8 [\fB!\fP] \fB\-\-source\-ports\fP,\fB\-\-sports\fP \fIport\fP[\fB,\fP\fIport\fP|\fB,\fP\fIport\fP\fB:\fP\fIport\fP]...
9 Match if the source port is one of the given ports.  The flag
10 \fB\-\-sports\fP
11 is a convenient alias for this option. Multiple ports or port ranges are
12 separated using a comma, and a port range is specified using a colon.
13 \fB53,1024:65535\fP would therefore match ports 53 and all from 1024 through
14 65535.
15 .TP
16 [\fB!\fP] \fB\-\-destination\-ports\fP,\fB\-\-dports\fP \fIport\fP[\fB,\fP\fIport\fP|\fB,\fP\fIport\fP\fB:\fP\fIport\fP]...
17 Match if the destination port is one of the given ports.  The flag
18 \fB\-\-dports\fP
19 is a convenient alias for this option.
20 .TP
21 [\fB!\fP] \fB\-\-ports\fP \fIport\fP[\fB,\fP\fIport\fP|\fB,\fP\fIport\fP\fB:\fP\fIport\fP]...
22 Match if either the source or destination ports are equal to one of
23 the given ports.