IPQ Userspace Filtering
Does anyone know of a way to determine if another userspace application has created an IPQ handler (NETLINK_FIREWALL socket)? I understand that the only one may be used at a time, however currently the second one is allowed to open, and then all traffic is directed to this one. Neither instance receives any indication that there is a conflict. I am using the intercept.c example code to test this. My first preference would be to prevent the second socket from being opened until the first program exited.
Any assistance would be appreciated.
Thanks,
John
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
Quoted 10 lines · John Minnis
Does anyone know of a way to determine if another userspace application has created an IPQ handler (
NETLINK_FIREWALLsocket)? I understand that the only one may be used at a time, however currently the second one is allowed to open, and then all traffic is directed to this one. Neither instance receives any indication that there is a conflict. I am using theintercept.cexample code to test this. My first preference would be to prevent the second socket from being opened until the first program exited.
IP queue is not designed with support for multiple processes.
Maybe you want to look into ipqmpd, the ip queue multiplex daemon. It allows multiple processes from usersapace use ip_queue.
Quoted 2 lines
Thanks,
John
Signature · 5 lines
- Harald Welte <[email protected]> http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie