Blame extensions/libxt_NFQUEUE.man

Packit 7b22a4
This target passes the packet to userspace using the
Packit 7b22a4
\fBnfnetlink_queue\fP handler.  The packet is put into the queue
Packit 7b22a4
identified by its 16-bit queue number.  Userspace can inspect
Packit 7b22a4
and modify the packet if desired. Userspace must then drop or
Packit 7b22a4
reinject the packet into the kernel.  Please see libnetfilter_queue
Packit 7b22a4
for details.
Packit 7b22a4
.B
Packit 7b22a4
nfnetlink_queue
Packit 7b22a4
was added in Linux 2.6.14. The \fBqueue-balance\fP option was added in Linux 2.6.31,
Packit 7b22a4
\fBqueue-bypass\fP in 2.6.39.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-queue\-num\fP \fIvalue\fP
Packit 7b22a4
This specifies the QUEUE number to use. Valid queue numbers are 0 to 65535. The default value is 0.
Packit 7b22a4
.PP
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-queue\-balance\fP \fIvalue\fP\fB:\fP\fIvalue\fP
Packit 7b22a4
This specifies a range of queues to use. Packets are then balanced across the given queues.
Packit 7b22a4
This is useful for multicore systems: start multiple instances of the userspace program on
Packit 7b22a4
queues x, x+1, .. x+n and use "\-\-queue\-balance \fIx\fP\fB:\fP\fIx+n\fP".
Packit 7b22a4
Packets belonging to the same connection are put into the same nfqueue.
Packit 7b22a4
.PP
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-queue\-bypass\fP
Packit 7b22a4
By default, if no userspace program is listening on an NFQUEUE, then all packets that are to be queued
Packit 7b22a4
are dropped.  When this option is used, the NFQUEUE rule behaves like ACCEPT instead, and the packet
Packit 7b22a4
will move on to the next table.
Packit 7b22a4
.PP
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-queue\-cpu-fanout\fP
Packit 7b22a4
Available starting Linux kernel 3.10. When used together with
Packit 7b22a4
\fB--queue-balance\fP this will use the CPU ID as an index to map packets to
Packit 7b22a4
the queues. The idea is that you can improve performance if there's a queue
Packit 7b22a4
per CPU. This requires \fB--queue-balance\fP to be specified.