Blame extensions/libxt_NFQUEUE.man

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