Skip to content
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

Real Time Capture Question #24

Open
jagonza1ez opened this issue Nov 13, 2024 · 1 comment
Open

Real Time Capture Question #24

jagonza1ez opened this issue Nov 13, 2024 · 1 comment

Comments

@jagonza1ez
Copy link

Hi,

I'm using the Arkime container, and I have a question about its capabilities. Does the Arkime container support real-time packet capture, or is it limited to ingesting pre-saved pcap files as described in the README?

Thank you!

@mammo0
Copy link
Owner

mammo0 commented Nov 14, 2024

Hi @jagonza1ez,

I never tried to capture the network traffic from within the Arkime container. Currently my only use case for Arkime is to put already captured .pcap files into it. Therefore, I added the phrase This feature is not tested yet! to the README.

Nevertheless the Arkime capture process should be started if you set the env variable CAPTURE=on and ARKIME_INTERFACE to your network device name, e.g. eth0.
To access your host's network device from inside the container it should be possible to forward it with the --device parameter (https://docs.docker.com/reference/cli/docker/container/run/#device). Also the --privileged flag could be needed here.
Maybe you can try to run the Arkime container with the following parameter:

docker run \
    -e OS_HOST=opensearch \
    -e OS_PORT=9200 \
    -e CAPTURE=on \
    -e ARKIME_INTERFACE=capturenet0 \
    -v <config_volume>:/data/config \
    -v <pcap_volume>:/data/pcap \
    -v <log_volume>:/data/logs \
    --device=/dev/eth0:/dev/capturenet0 \
    --privileged \
    mammo0/docker-arkime:<tag>

Please tell me, if this works. Then I can update my README. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants