libxt_multiport.man revision 9b488b992872d4d2b7ebf7897d74d52f4fb59e1c
1This module matches a set of source or destination ports. Up to 15 2ports can be specified. A port range (port:port) counts as two 3ports. It can only be used in conjunction with 4.B "-p tcp" 5or 6.BR "-p udp" . 7.TP 8[\fB!\fP] \fB--source-ports\fP,\fB--sport\fP \fIport\fP[\fB,\fP\fIport\fP|\fB,\fP\fIport\fP\fB:\fP\fIport\fP]... 9Match if the source port is one of the given ports. The flag 10.B --sports 11is a convenient alias for this option. Multiple ports or port ranges are 12separated 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 1465535. 15.TP 16[\fB!\fP] \fB--destination-ports\fP,\fB--dport\fP \fIport\fP[\fB,\fP\fIport\fP|\fB,\fP\fIport\fP\fB:\fP\fIport\fP]... 17Match if the destination port is one of the given ports. The flag 18.B --dports 19is 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]... 22Match if either the source or destination ports are equal to one of 23the given ports. 24