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 | 86c8513 | 2005-06-11 16:27:10 +0000 | [diff] [blame] | 2 | ports can be specified. A port range (port:port) counts as two |
| 3 | ports. It can only be used in conjunction with |
Jan Engelhardt | fea74bf | 2009-01-12 04:53:18 +0100 | [diff] [blame] | 4 | \fB\-p tcp\fP |
Henrik Nordstrom | c279413 | 2004-01-22 15:04:24 +0000 | [diff] [blame] | 5 | or |
Jan Engelhardt | fea74bf | 2009-01-12 04:53:18 +0100 | [diff] [blame] | 6 | \fB\-p udp\fP. |
Henrik Nordstrom | c279413 | 2004-01-22 15:04:24 +0000 | [diff] [blame] | 7 | .TP |
Marc Fournier | ae6f9b9 | 2009-01-15 13:57:53 +0100 | [diff] [blame] | 8 | [\fB!\fP] \fB\-\-source\-ports\fP,\fB\-\-sports\fP \fIport\fP[\fB,\fP\fIport\fP|\fB,\fP\fIport\fP\fB:\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 |
Jan Engelhardt | fea74bf | 2009-01-12 04:53:18 +0100 | [diff] [blame] | 10 | \fB\-\-sports\fP |
Jan Engelhardt | 9b488b9 | 2008-06-08 19:11:51 +0200 | [diff] [blame] | 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. |
Henrik Nordstrom | c279413 | 2004-01-22 15:04:24 +0000 | [diff] [blame] | 15 | .TP |
Marc Fournier | ae6f9b9 | 2009-01-15 13:57:53 +0100 | [diff] [blame] | 16 | [\fB!\fP] \fB\-\-destination\-ports\fP,\fB\-\-dports\fP \fIport\fP[\fB,\fP\fIport\fP|\fB,\fP\fIport\fP\fB:\fP\fIport\fP]... |
Henrik Nordstrom | c279413 | 2004-01-22 15:04:24 +0000 | [diff] [blame] | 17 | Match if the destination port is one of the given ports. The flag |
Jan Engelhardt | fea74bf | 2009-01-12 04:53:18 +0100 | [diff] [blame] | 18 | \fB\-\-dports\fP |
Henrik Nordstrom | c279413 | 2004-01-22 15:04:24 +0000 | [diff] [blame] | 19 | is a convenient alias for this option. |
| 20 | .TP |
Jan Engelhardt | fea74bf | 2009-01-12 04:53:18 +0100 | [diff] [blame] | 21 | [\fB!\fP] \fB\-\-ports\fP \fIport\fP[\fB,\fP\fIport\fP|\fB,\fP\fIport\fP\fB:\fP\fIport\fP]... |
Rusty Russell | 56506a1 | 2005-05-25 08:10:03 +0000 | [diff] [blame] | 22 | Match if either the source or destination ports are equal to one of |
| 23 | the given ports. |