-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libnetfilter_queue/libnetfilter_queue.h no such file or directory #6
Comments
Do you have libnetfilter installed? I have the following;
|
Thanks, I was able to install the package.
Do you have any idea what could be causing this ? Thanks ! |
Your app may simply be running with insufficient privileges to bind /unbind the queue. Without going into too much depth, out of scope of the project, I invoke my app with;
Neither the package maintainer, nor i; can take any accountability for running your applications or other commands as sudo. And further managing this is outside scope of this project. From brief research; you'll need to discover how to grant access to both libpcap and libnfqueue to a non-sudo user. Obviously; properly managing your system permissions in production/release is very important. |
Thank you for your help, I really appreciate it ! However, I have one last problem I hope you could help me with. When running the project, if I ping the machine to test if the packet is received properly, I have the following error
Do you have any idea what could cause this ? |
Ooooh, I have found where the error was. It seems that my version of node couldn't interpret the follwing instruction :
Because of that, my callback was always undefined, and it would crash when trying to execute it |
Ah. Yeah. There is an issue with the demo / example. I've been meaning to write a new, and submit a PR. Creating a queue handler requires three arguments, contrary to the two in the example; Queue Number, Buffer Size, Callback. As per; Line 68 in 479800b
Edit: |
Since it seems to have been fixed, this issue may be closed |
(Tried on Ubuntu 16.04.3)
When running
npm install nfqueue
on a freshnpm init
I get the following errorIs there any dependency that the lib is requiring ?
Thanks !
The text was updated successfully, but these errors were encountered: