From 69ca83914cbe3f2662e34e1d40e95c1315ba7622 Mon Sep 17 00:00:00 2001 From: leiweibau <105860611+leiweibau@users.noreply.github.com> Date: Wed, 3 Aug 2022 09:31:35 +0200 Subject: [PATCH] Edit Config File Remove parameters that cannot be used --- back/pialert.py | 4 ++-- config/pialert.conf | 12 ------------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/back/pialert.py b/back/pialert.py index 64e6f206..cb10c35c 100644 --- a/back/pialert.py +++ b/back/pialert.py @@ -456,10 +456,10 @@ def execute_arpscan (pRetries): # 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] + arpscan_args = ['sudo', 'arp-scan', '--ignoredups', '--bandwidth=512k', '--retry=3', '--localnet'] # Default arp-scan - # arpscan_args = ['sudo', 'arp-scan', SCAN_SUBNETS, '--ignoredups', '--retry=' + str(pRetries)] + # arpscan_args = ['sudo', 'arp-scan', '--localnet', '--ignoredups', '--retry=' + str(pRetries)] # print (arpscan_args) # TESTING - Fast Scan diff --git a/config/pialert.conf b/config/pialert.conf index 42f82997..c55e9b72 100644 --- a/config/pialert.conf +++ b/config/pialert.conf @@ -48,15 +48,3 @@ PIHOLE_DB = '/etc/pihole/pihole-FTL.db' DHCP_ACTIVE = False DHCP_LEASES = '/etc/pihole/dhcp.leases' -# arp-scan options & samples -# -# Scan local network (default) -# SCAN_SUBNETS = '--localnet' -# -# Scan two subnets -# SCAN_SUBNETS = '192.168.11.0/24 192.168.144.0/24' -# -# Scan using interface eth0 -# SCAN_SUBNETS = '--localnet --interface=eth0' - -SCAN_SUBNETS = '--localnet'