blob: 910e3863a3e4407cd423cd04a1396bf8c89ac298 [file] [log] [blame]
Harald Welte7bdfca42005-07-28 15:24:02 +00001This target is an extension of the QUEUE target. As opposed to QUEUE, it allows
2you to put a packet into any specific queue, identified by its 16-bit queue
Florian Westphal4282d892009-08-20 16:39:05 +02003number.
Harald Welte7bdfca42005-07-28 15:24:02 +00004It can only be used with Kernel versions 2.6.14 or later, since it requires
5the
6.B
7nfnetlink_queue
Florian Westphal6924b492011-01-20 11:27:42 +01008kernel support. The \fBqueue-balance\fP option was added in Linux 2.6.31,
9\fBqueue-bypass\fP in 2.6.39.
Florian Westphal4282d892009-08-20 16:39:05 +020010.TP
11\fB\-\-queue\-num\fP \fIvalue\fP
12This 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
16This specifies a range of queues to use. Packets are then balanced across the given queues.
17This is useful for multicore systems: start multiple instances of the userspace program on
18queues x, x+1, .. x+n and use "\-\-queue\-balance \fIx\fP\fB:\fP\fIx+n\fP".
19Packets belonging to the same connection are put into the same nfqueue.
Florian Westphal6924b492011-01-20 11:27:42 +010020.PP
21.TP
22\fB\-\-queue\-bypass\fP
23By default, if no userspace program is listening on an NFQUEUE, then all packets that are to be queued
24are dropped. When this option is used, the NFQUEUE rule is silently bypassed instead. The packet
25will move on to the next rule.