Re: Multiple nf_bind_pf to the same protocol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mattias Rönnblom wrote:
> Hi,
> 
> with NFQUEUE and the libnetfilter_queue library, is it possible to
> bind several applications to same protocol (for example, AF_INET)?
> 
> That would be useful if you want to do load balancing on a multicore
> system, with a thread/process serving each NFQUEUE queue.
> 
> After having a brief look at the NFQUEUE/libnetfilter_queue code, it
> looks like there's only single netlink fd for all queues, and the
> library does the demultiplexing. Would that mean I have to have a
> "front-end" thread distributing different servering threads?

You can bind them to different group numbers for the same AF.
The latest version of the NFQUEUE target even supports automatic
balancing between those groups based on a simple flow hash.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux