Closed thehijacker closed 1 year ago
Its seems to be VLAN related.:
root@proxmox:~# arp-scan --ignoredups --retry=6 10.0.107.0/24 --interface=vmbr0
Interface: vmbr0, type: EN10MB, MAC: 1c:83:41:30:01:82, IPv4: 192.168.28.70
Starting arp-scan 1.9.7 with 256 hosts (https://github.com/royhills/arp-scan)
181 packets received by filter, 0 packets dropped by kernel
Ending arp-scan 1.9.7: 256 hosts scanned in 11.143 seconds (22.97 hosts/sec). 0 responded
If I add --vlan 107
root@proxmox:~# arp-scan --ignoredups --retry=6 10.0.107.0/24 -vlan=107 --interface=vmbr0
Interface: vmbr0, type: EN10MB, MAC: 1c:83:41:30:01:82, IPv4: 192.168.28.70
Starting arp-scan 1.9.7 with 256 hosts (https://github.com/royhills/arp-scan)
10.0.107.1 e4:8d:8c:XX:XX:XX Routerboard.com (802.1Q VLAN=107)
10.0.107.30 78:11:dc:XX:XX:XX XIAOMI Electronics,CO.,LTD (802.1Q VLAN=107)
10.0.107.31 40:31:3c:XX:XX:XX XIAOMI Electronics,CO.,LTD (802.1Q VLAN=107)
So how can I add this vlan parameters to pialert via web UI?
Edited it manually in pialert.conf. GUI looks like this now:
Still waiting for full scan to see if it will work.
Scan finished. Lots of "name not found" and they are now from all three subnets. But no problem. I will edit one by one and attach to router so I get a nice visual of my network.
Please check if my setup for vlan is correct and if can be officialy supported in GUI.
EDIT: It seems Pholus is not working now:
Pholus scan on [interface] eth0 [mask] 10.0.107.0/24 --vlan=107
source MAC address:a2:89:95:77:ff:77source IPv4 Address:192.168.28.53source IPv6 address:fd96:db65:2925:47e1:a089:95ff:fe77:ff77
Sniffer filter is: not ether src a2:89:95:77:ff:77 and udp and port 5353
I will sniff for 60.0 seconds, unless interrupted by Ctrl-C
------------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pi/pialert/pholus/pholus3.py", line 1192, in <module>
main()
File "/home/pi/pialert/pholus/pholus3.py", line 1062, in main
ipn = ipaddress.ip_network(values.rdns_scanning)
File "/usr/lib/python3.9/ipaddress.py", line 83, in ip_network
raise ValueError('%r does not appear to be an IPv4 or IPv6 network' %
ValueError: '10.0.107.0/24 --vlan=107' does not appear to be an IPv4 or IPv6 network
Error - Pholus Scan - check logs
[2023-02-05 19:57:54] Scan: Pholus FAIL - check logs
[2023-02-05 19:57:54] Scan: Pholus for 120s (2.0min)
Thank you.
Cheers for letting me know! Will add this probably to a future release.
I found if I reverse it like this 10.0.107.0/24 --interface=vmbr0 -vlan=107
then Pholus works like normal.
Thanks @renouji! I've covered this scenario in the following documentation snippet which I link to from the in app settings page:
https://github.com/jokob-sk/Pi.Alert/blob/main/docs/SUBNETS.md
Let me know if you have any suggestions for improving it or if unclear after reading.
Closing for now.
Thanks, J
Describe the issue
I have three subnets. Only in one it finds devices. Even if other two subnets are reachable.
Paste last few lines from
pialert.log
Paste your
pialert.conf
(remove personal info)Paste your
docker-compose.yml
and.env
(remove personal info)docker-compose.yml
Screenshots