WatchYourLAN icon indicating copy to clipboard operation
WatchYourLAN copied to clipboard

Feature request: Scan multiple subnets

Open broizter opened this issue 3 years ago • 10 comments
trafficstars

This might be out of scope for the project though since arp-scan is limited to the local network only.

broizter avatar Aug 29 '22 08:08 broizter

I believe it your benefit some home users and small companies witch can check new devices added to the network and identify possible rogue equipment.

ricardoglima avatar Sep 13 '22 16:09 ricardoglima

This is definitely the feature I'd need to be make this viable for my usecase.

I currently use PiHole + Unifi console to fulfil this job on five subnets, so it'd be nice to have a GUI and have a dedicated tool for this job.

Although, thinking about it, not quite sure how you'd get arpscan to scan multiple subnets without some weird network-foo. Maybe IPVLAN or MACVLANs (e.g. this or this?)

modem7 avatar Sep 13 '22 20:09 modem7

I'm thinking about replacing arp-scan with my own tool, but that needs time and some research

aceberg avatar Sep 14 '22 16:09 aceberg

Instead of arp, would listening for dhcp be a potentially better solution?

modem7 avatar Sep 14 '22 17:09 modem7

I am able to scan multiple subnets by putting the container on multiple vlans/networks

spoilt999 avatar Sep 23 '22 23:09 spoilt999

AFAIK: ARP can only get neighboring nodes, so only for those subnet its part of, it can't go into a different network and query that table. Maybe this could be implemented by changing the backend from arp-scan to nmap (e.g. nmap -sn 10.42.0.0/24 )?

reneManqueros avatar Sep 28 '22 00:09 reneManqueros

I think my question fits in this topic. I am using docker-compose to start WYL. As interface I have put eth0 and it finds only devices in 172.x.x.x network which I think are the docker interfaces. What I need is to scan for all the subnets I have in my network: 192.168.28.0/24, 10.0.107.0/24 and 10.0.208.0/24. Can this be done?

thehijacker avatar Feb 04 '23 12:02 thehijacker

Is this gonna happen?

huntson avatar Nov 23 '23 17:11 huntson

I haven't taken a look at the actual code but moving over to nmap should in theory not be too difficult and would allow scanning multiple subnets. I have made my own script that does this and notifies if it detects new devices. It's rudimentary but works well. https://github.com/broizter/openwrt-device-scanner/blob/main/device-scanner.sh

broizter avatar Nov 23 '23 18:11 broizter

And it's possible to scan /16 network ?

mero20j1 avatar Feb 27 '24 16:02 mero20j1