-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
pcap_next: Could not get a bpf #146
Comments
This has been on my mental todo since I read through the greenbone community container docs. I’m going to assume you are starting from command line, so try adding: —cap-add NET_ADMIN |
Tried --cap-add NET_ADMIN and it made no difference. |
I should have asked ... |
I'm using the single container image |
Do you get the same error if you start the container with the "--privileged" option ? |
The official community docker changelog has this line in it now:
And sure enough in their compose example they have I couldn't get the --hostname parameter to work running the container from the CLI, so I downloaded one of the compose files and added hostname to it, and it appears so far to have fixed the issue. It's easy to tell: with the issue, a scan report only ever found port 80 and did nothing essentially. Without the issue, it detects the SSL port. So you know very early on whether or not it worked. My full compose file after adding
P.S. Thanks for this project, I used it back in May and it was very easy to get going. Today I tried the community version of docker support and I ran into a lot of issues with it. Then I remembered this project, and despite this little hiccup (which was not the fault of this project) it essentially worked right out of the box again. So, thanks for making this easy! |
Is there any attend to implement the hostname in that Image?
|
No offense to the owner of this repo, but the other day I discovered that Greenbone Community's official docker-compose is pretty good, if that could be an option for you. https://greenbone.github.io/docs/latest/22.4/container/index.html Spoilers:
That's it, it'll show up at |
Hi, i'm facing with ethernet address used in non-ether expression and Could not get a bpf, but this is related with the hostname? Because i've see that in the latest build the hostname was specified. |
Yeah I think that was fixed in docker compose with: |
Thank you! I'll a try. |
This issue really concerns a plugin and not this docker image project and this is a near dupe of #103 and someone else's container here: Secure-Compliance-Solutions-LLC/OpenVAS-Docker#15
Then a more thorough answer here: https://forum.greenbone.net/t/ospd-openvas-dont-have-permission-to-capture-on-that-device/4564
Although I do NOT get the error "Could not capture on that device" so my issue may be completely unrelated.
It could be an issue with a specific plugin and I will check on that, but other's are saying it's a possible permission issue ?
My Actual Question (Which is actually regarding this Docker container project and not the plugin):
What flags can I set for things such as hostname, domain, permissions on specific processes in this docker image?
There are a number of images used in the container and I don't know what applies to which. Some are docker flags and some are specific to the images. I will also try different network modes.
I have not found a definitive answer on this. If anyone has any other clue why this plugin is angry please let me know.
The text was updated successfully, but these errors were encountered: