jokob-sk / NetAlertX

🖧🔍 WIFI / LAN intruder detector. Scans for devices connected to your network and alerts you if new and unknown devices are found.
GNU General Public License v3.0
3.15k stars 186 forks source link

Need some extra eyes please... #778

Closed adm2k closed 2 months ago

adm2k commented 3 months ago

When I run Netalertx using the following I see all of my devices:

docker run -d --rm --network=host -v "/$(pwd)/netalertx/config:/app/config" -v "/$(pwd)/netalertx/db:/app/db" -e TZ=America/New_York -e PORT=20211 jokobsk/netalertx:latest

I converted the above to a docker-compose.yml and only see one device, my internet connections.

name: netalertx services: netalertx: network_mode: host volumes:

Any suggestions?

Many thanks! al

adm2k commented 2 months ago

Can anyone help?

Thanks

FlyingToto commented 2 months ago

not sure if it helps but...
1) yes it looks like your docker compose match your docker command... (I never used $pwd in my file, so you might want to try to hardcode the path and see if it helps) 2) did you double-check your interface name and subnet inside netalertX after starting from compose? maybe the config got reset and it is not parsing the whole subnet... as when you start it from the docker command...

adm2k commented 2 months ago

@FlyingToto

Thanks for the response. I removed the $pwd and use /root/NetAlertx and it worked!

Thanks again!

jokob-sk commented 2 months ago

Thank you @FlyingToto for your help here 🙏 closing as resolved.