mirror of
https://github.com/brentvollebregt/whos-on-my-network.git
synced 2026-04-25 03:25:51 +03:00
[GH-ISSUE #31] The default scanner is not working due to libpcap missing #7
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whos-on-my-network#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @brentvollebregt on GitHub (Nov 24, 2023).
Original GitHub issue: https://github.com/brentvollebregt/whos-on-my-network/issues/31
This is probably similar to #13 - we need libpcap setup in the container.
Seems that
RUN apk add libpcapisn't cutting it.Managed to work it down to these lines not working:
Ideally something like
find_library("bz2")would always work but even that doesn't - this might be an issue outside of libpcap and maybe with the alpine image and what it doesn't have.@brentvollebregt commented on GitHub (Nov 24, 2023):
This comment lets us know we need
gcc.While this gets pcap working, I see we now may have networking issues with the docker container.
pingworks fine however scapy's arping doesn't seem to be getting any responses. I have double-checked the interface and that doesn't seem to be the issues 🤔@brentvollebregt commented on GitHub (Nov 24, 2023):
It appears since docker uses its own network and ARP uses MAC addresses (as opposed to IP addresses), the packets are not routed out of the container. Have tried the "host" network but that isn't helping.
Can use this to test within a running container:
Using arping, I was able to see ARP packets are not being answered but I can ping:
This was with
network_mode: host,privileged: trueandcap_add: - NET_ADMIN - NET_RAW- if this setup doesn't work, I don't think we can setup the network to be able to do what we want. I also tried macvlan but only the host replied.@brentvollebregt commented on GitHub (Nov 25, 2023):
Seems the latest issue was due to networking - even when using
network_mode: host, docker on Windows still uses an internal network which means ARP packets are not sent on the correct network. Linux seems to work fine.Findings have been added to the default scanner in
8c336c909d