![]() Mosquitto_pub -h $mqtt_host -u $mqtt_user -P $mqtt_password -t $mqtt_topic -m "New Mac: $fing_mac IP: $fing_ip FingName: $fing_name"Įlif Įcho "$dt - $fing_mac has multiple records in knowndevices.txt" Path to knowndevices.txt and ignoreddevices.txtįor l in `fing -n $net -r 1 -o table,csv -silent` Net - network which will Fing search (mine is 192.168.0.0/24) In network_tracker.sh script you have to put your data for: deb file via dpkg or apt command:Īnd now you have all needed libraries. I downloaded Fing CLI - Linux Debian - v5.5.2 zip and there you will find:įing-5.5.b which is needed for RPi 3 but there are other. Required librariesįirst you have to install chkconfig tool. Report for each device is published to MQTT. Also this is useful against attacks when someone fakes your known device mac address. This is useful if you didn’t setup static Ip address, then you will get notification if some of your devices changed Ip. If not then it checks knowndevices.txt file for that device and also checks if that device has still the same Ip address. Then for each row in that table I check if that device is present in ignoreddevices.txt file. ![]() Script runs Fing command line tool which returns CSV style table of all devices in defined network. It can be also optimized but well, it’s working What I’m doing there? I created very simple bash script which I’m running on my Raspberry Pi 3. Idea is that I have some tool which will scan my local network each 30 minutes and see if any new, unknown, device is present and send notification to telegram with information about that device. I’m not paranoid about network security, but I wanted to know if some device joins my network.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |