blob: 6f75a6e25a8a8706b0acc9703278bf2e6cf143e9 [file] [log] [blame]
Henrik Nordstromc2794132004-01-22 15:04:24 +00001This module matches a set of source or destination ports. Up to 15
Phil Oesterb46d0b22006-07-03 18:35:24 +00002ports can be specified. It can only be used in conjunction
Yasuyuki KOZAKAI28e5b792006-01-30 08:50:09 +00003with
Henrik Nordstromc2794132004-01-22 15:04:24 +00004.B "-p tcp"
5or
6.BR "-p udp" .
7.TP
Phil Oesterb46d0b22006-07-03 18:35:24 +00008.BR "--source-ports " "\fI[!] port\fP[,\fIport\fP[,\fIport\fP...]]"
Henrik Nordstromc2794132004-01-22 15:04:24 +00009Match if the source port is one of the given ports. The flag
10.B --sports
11is a convenient alias for this option.
12.TP
Phil Oesterb46d0b22006-07-03 18:35:24 +000013.BR "--destination-ports " "\fI[!] port\fP[,\fIport\fP[,\fIport\fP...]]"
Henrik Nordstromc2794132004-01-22 15:04:24 +000014Match if the destination port is one of the given ports. The flag
15.B --dports
16is a convenient alias for this option.
17.TP
Phil Oesterb46d0b22006-07-03 18:35:24 +000018.BR "--ports " "\fI[!] port\fP[,\fIport\fP[,\fIport\fP...]]"
Henrik Nordstromc2794132004-01-22 15:04:24 +000019Match if the both the source and destination ports are equal to each
20other and to one of the given ports.