Henrik Nordstrom | c279413 | 2004-01-22 15:04:24 +0000 | [diff] [blame] | 1 | This module matches a set of source or destination ports. Up to 15 |
Phil Oester | b46d0b2 | 2006-07-03 18:35:24 +0000 | [diff] [blame] | 2 | ports can be specified. It can only be used in conjunction |
Yasuyuki KOZAKAI | 28e5b79 | 2006-01-30 08:50:09 +0000 | [diff] [blame] | 3 | with |
Henrik Nordstrom | c279413 | 2004-01-22 15:04:24 +0000 | [diff] [blame] | 4 | .B "-p tcp" |
| 5 | or |
| 6 | .BR "-p udp" . |
| 7 | .TP |
Phil Oester | b46d0b2 | 2006-07-03 18:35:24 +0000 | [diff] [blame] | 8 | .BR "--source-ports " "\fI[!] port\fP[,\fIport\fP[,\fIport\fP...]]" |
Henrik Nordstrom | c279413 | 2004-01-22 15:04:24 +0000 | [diff] [blame] | 9 | Match if the source port is one of the given ports. The flag |
| 10 | .B --sports |
| 11 | is a convenient alias for this option. |
| 12 | .TP |
Phil Oester | b46d0b2 | 2006-07-03 18:35:24 +0000 | [diff] [blame] | 13 | .BR "--destination-ports " "\fI[!] port\fP[,\fIport\fP[,\fIport\fP...]]" |
Henrik Nordstrom | c279413 | 2004-01-22 15:04:24 +0000 | [diff] [blame] | 14 | Match if the destination port is one of the given ports. The flag |
| 15 | .B --dports |
| 16 | is a convenient alias for this option. |
| 17 | .TP |
Phil Oester | b46d0b2 | 2006-07-03 18:35:24 +0000 | [diff] [blame] | 18 | .BR "--ports " "\fI[!] port\fP[,\fIport\fP[,\fIport\fP...]]" |
Henrik Nordstrom | c279413 | 2004-01-22 15:04:24 +0000 | [diff] [blame] | 19 | Match if the both the source and destination ports are equal to each |
| 20 | other and to one of the given ports. |