Harald Welte | 7bdfca4 | 2005-07-28 15:24:02 +0000 | [diff] [blame] | 1 | This target is an extension of the QUEUE target. As opposed to QUEUE, it allows |
| 2 | you to put a packet into any specific queue, identified by its 16-bit queue |
Florian Westphal | 4282d89 | 2009-08-20 16:39:05 +0200 | [diff] [blame] | 3 | number. |
Harald Welte | 7bdfca4 | 2005-07-28 15:24:02 +0000 | [diff] [blame] | 4 | It can only be used with Kernel versions 2.6.14 or later, since it requires |
| 5 | the |
| 6 | .B |
| 7 | nfnetlink_queue |
Florian Westphal | 6924b49 | 2011-01-20 11:27:42 +0100 | [diff] [blame] | 8 | kernel support. The \fBqueue-balance\fP option was added in Linux 2.6.31, |
| 9 | \fBqueue-bypass\fP in 2.6.39. |
Florian Westphal | 4282d89 | 2009-08-20 16:39:05 +0200 | [diff] [blame] | 10 | .TP |
| 11 | \fB\-\-queue\-num\fP \fIvalue\fP |
| 12 | This specifies the QUEUE number to use. Valid queue numbers are 0 to 65535. The default value is 0. |
| 13 | .PP |
| 14 | .TP |
| 15 | \fB\-\-queue\-balance\fP \fIvalue\fP\fB:\fP\fIvalue\fP |
| 16 | This specifies a range of queues to use. Packets are then balanced across the given queues. |
| 17 | This is useful for multicore systems: start multiple instances of the userspace program on |
| 18 | queues x, x+1, .. x+n and use "\-\-queue\-balance \fIx\fP\fB:\fP\fIx+n\fP". |
| 19 | Packets belonging to the same connection are put into the same nfqueue. |
Florian Westphal | 6924b49 | 2011-01-20 11:27:42 +0100 | [diff] [blame] | 20 | .PP |
| 21 | .TP |
| 22 | \fB\-\-queue\-bypass\fP |
| 23 | By default, if no userspace program is listening on an NFQUEUE, then all packets that are to be queued |
| 24 | are dropped. When this option is used, the NFQUEUE rule is silently bypassed instead. The packet |
| 25 | will move on to the next rule. |