iptables-1.3.2-20050720
[iptables.git] / extensions / libipt_mport.man
1 This module matches a set of source or destination ports.  Up to 15
2 ports can be specified.  It can only be used in conjunction with
3 .B "-p tcp"
4 or
5 .BR "-p udp" .
6 .TP
7 .BR "--source-ports " "\fIport\fP[,\fIport\fP[,\fIport\fP...]]"
8 Match if the source port is one of the given ports.  The flag
9 .B --sports
10 is a convenient alias for this option.
11 .TP
12 .BR "--destination-ports " "\fIport\fP[,\fIport\fP[,\fIport\fP...]]"
13 Match if the destination port is one of the given ports.  The flag
14 .B --dports
15 is a convenient alias for this option.
16 .TP
17 .BR "--ports " "\fIport\fP[,\fIport\fP[,\fIport\fP...]]"
18 Match if the both the source and destination ports are equal to each
19 other and to one of the given ports.