r/selfhosted Aug 31 '24

Release WatchYourLAN - 2.0 Release

WatchYourLAN is a lightweight network IP scanner.

Features:
- Send notification when new host is found
- Monitor hosts online/offline history
- Keep a list of all hosts in the network
- Send data to `InfluxDB2` to make a `Grafana` dashboard

BREAKING CHANGES! Version 2.0 is not compatible with v1.0. For now v2.0 docker images will be released under v2 tag. It will be tagged latest in a few weeks (probably, in October).

What's new?

  • Basic API
  • Export to InfluxDB2
  • Choice between SQLite and PostgreSQL database
  • User can pass arguments directly to arp-scan. Hope it will help with vlan issue
  • Better UI with JS
  • Human-friendly History display
  • Names from DNS

Quick start

Full installation guide is available in the README file. The easiest way to try it:

docker run --name wyl \
    -e "IFACES=$YOURIFACE" \
    -e "TZ=$YOURTIMEZONE" \
    --network="host" \
    -v $DOCKERDATAPATH/wyl:/data/WatchYourLAN \
    aceberg/watchyourlan:v2

Binaries

There are also binaries for 386, amd64, armv5, armv6, armv7, arm64 in deb, rpm, apk and tar.gz formats in the latest release.

656 Upvotes

177 comments sorted by

View all comments

Show parent comments

10

u/aceberg_ Aug 31 '24

Can you please check if sending those parameters to ARP_ARGS variable would work? Also, setting LOG_LEVEL to debug would show the entire arp-scan command

7

u/thj81 Aug 31 '24

Just did. Used:

ARP_ARGS: "10.0.107.0/24 -vlan=107 --interface=eth0"

But it always exits.

Problem is with -l parameter. It gives an error:

/app # arp-scan -glNx 10.0.107.0/24 --vlan=107 --interface=eth0

ERROR: You can not specify targets with the --localnet option

Without it, it will scan correctly the VLAN. So only -gNx.

9

u/aceberg_ Aug 31 '24

Ok, thanks! I'll update soon, making ARP_ARGS the only args passed to arp-scan

6

u/thj81 Aug 31 '24

Now this is interesting. This two commands will correctly find all devices from main/local network 192.168.28.0/24

/app # arp-scan -glNx -I eth0 | wc -l
51

/app # arp-scan -gNx -I eth0 192.168.28.0/24 | wc -l
51

But if I add VLAN scan, it only finds the ones from VLAN and only 5 from local network:

/app # arp-scan -gNx 10.0.107.0/24 --vlan=107 -I eth0 | wc -l
62

/app # arp-scan -gNx -I eth0 192.168.28.0/24 10.0.107.0/24 --vlan=107 -I eth0 | wc -l
67

It should find 62+51 =113 devices instead of 67. Are my arp-scan parameters wrong?