Traffic not being recorded in docker
Hi,
I was installing Maltrail, just for demonstration purposes, in docker on VirtualBox with clean Debian 12.7 following commands given at https://github.com/stamparm/maltrail/tree/master/docker, but there was no /var/log/maltrail/$(date +"%Y-%m-%d").log file and it didn't seem to capture any traffic. I tried with commands nslookup morphed.ru and ping -c 1 136.161.101.53.
I updated the Dockerfile because it seems to me that there is some trouble with properly executing command pip3 install pcapy-ng (but there was no warning or error of any kind while building the container).
Adding apt-get install net-tools iproute2 curl and pip3 install --upgrade pip setuptools wheel to the Dockerfile seems to get rid of the issue and now I see logs and traffic in UI.
If you have the time, can you maybe checkout what exactly happened?
Hello!
A little bit chaotic description, as for me... Could you, please, attach your current Dockerfile configuration file, which works OK? Thnx!
Hi, yes sorry for that. If I can clarify you any specific part let me know.
Here is the Dockerfile.
@stamparm Take a look, please. Perhaps, something should be updated from our side?
I had to use network_mode: host for the container to see the interfaces.
I had to use
network_mode: hostfor the container to see the interfaces.
Some patch needed for htps://github.com/stamparm/maltrail/blob/master/docker/Dockerfile file?