From feb3eab3cd6ae2f94ac35662aa7e8371367cd04e Mon Sep 17 00:00:00 2001 From: leiweibau <105860611+leiweibau@users.noreply.github.com> Date: Mon, 13 Jun 2022 19:11:43 +0200 Subject: [PATCH] Suggestion for alternative Scan On larger Network the default arp-scan is to slow --- back/pialert.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/back/pialert.py b/back/pialert.py index 60ef1e67..5582bb1f 100644 --- a/back/pialert.py +++ b/back/pialert.py @@ -449,8 +449,15 @@ def execute_arpscan (pRetries): # #101 - arp-scan subnet configuration # Prepare command arguments subnets = SCAN_SUBNETS.strip().split() - arpscan_args = ['sudo', 'arp-scan', '--ignoredups', '--bandwidth=512k', '--retry=1'] + subnets + + # arp-scan for larger Networks like /16 + # otherwise the system starts multiple processes. the 15min cronjob isn't necessary. + # the scan is about 4min on a /16 network + arpscan_args = ['sudo', 'arp-scan', '--ignoredups', '--bandwidth=512k', '--retry=3', SCAN_SUBNETS] + + # Default arp-scan # arpscan_args = ['sudo', 'arp-scan', SCAN_SUBNETS, '--ignoredups', '--retry=' + str(pRetries)] + # print (arpscan_args) # TESTING - Fast Scan