Support Npcap in Docker Containers
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 3.6k
- Forks
- 592
- PR merge metrics
- No merged PRs in 30d
Description
I couldn't able to install silently inside the docker image.
I am using free version of npcap.
nmap-7.92-setup.exe
@hsluoyz Please help on this to capture the packet inside the windows container. We tried tcpdump, winpcap, wireshark inside container but still we are getting issue to capture packets.
` ** (wireshark:1936) 14:10:05.456066 [GLib WARNING] -- Failed to determine console output code page: The system could not find the environment option that was entered.. Falling back to UTF-8
wireshark: Unable to load Npcap or WinPcap (wpcap.dll); you will not be able to
capture packets.
In order to capture packets Npcap or WinPcap must be installed. See
https://nmap.org/npcap/
for a downloadable version of Npcap and for instructions on how to
install it.`
Dockerfile
`ARG version=ltsc2019
FROM mcr.microsoft.com/windows/servercore:$version
ENV chocolateyUseWindowsCompression false
RUN powershell -Command
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'));
choco feature disable --name showDownloadProgress
COPY tcpdump.exe C:/tcpdump.exe
COPY WinDump.exe C:/WinDump.exe
RUN choco install -y wireshark
RUN choco install -y winpcap
`
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied Dockerfile and the reported wpcap.dll error, then investigate how Npcap installation and packet capture behave in Windows Server Core containers. Done means a reproducible Windows container can install the required capture support and Wireshark or tcpdump can capture packets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- devops, networking, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100