Skip to content

Issue with scanning 2 subnets #231

@Ahzrukhal112

Description

@Ahzrukhal112

PI.Alert runs fine when using the '- - localnet' option of scan subnets, this is on my wired network. However when I try to change and scan both my wired and wireless subnets im getting an error as below. Is there a way to change the config to allow it to scan right up to the 255 host?

Scanning...
arp-scan Method...
WARNING: Cannot open MAC/Vendor file /usr/share/arp-scan/ieee-oui.txt: No such file or directory
WARNING: Cannot open MAC/Vendor file /usr/share/arp-scan/ieee-iab.txt: No such file or directory
ERROR: Number of bits in 172.30.128.1/255 must be between 3 and 32
Traceback (most recent call last):
File "/home/admin/pialert/back/pialert.py", line 1488, in
sys.exit(main())
File "/home/admin/pialert/back/pialert.py", line 85, in main
res = scan_network()
File "/home/admin/pialert/back/pialert.py", line 361, in scan_network
arpscan_devices = execute_arpscan (arpscan_retries)
File "/home/admin/pialert/back/pialert.py", line 463, in execute_arpscan
arpscan_output = subprocess.check_output (arpscan_args, universal_newlines=True)
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['sudo', 'arp-scan', '--ignoredups', '--retry=9', '172.30.128.1/255', '172.30.129.1/255']' returned non-zero exit status 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions