oremanj / python-netfilterqueue

Python bindings for libnetfilter_queue
MIT License
248 stars 96 forks source link

Add a parameter NetfilterQueue(sockfd=N) for using an externally-allocated netlink socket #78

Closed oremanj closed 2 years ago

oremanj commented 2 years ago

The chief use case for this is when sockfd was allocated in a different network namespace and passed to the current process over a UNIX domain socket or similar. It allows the current process to use netfilterqueue to manage traffic in a different network namespace.