-
-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device list not populated after ARP scan #952
Comments
Hi @lordraiden , Thanks for the report. I'm not getting this error so I assume this can be related to a reverse proxy setup or similar. ChatGPT also suggested it may be caused by a privacy browser addon, so maybe test a different browser? Still, I added a It would be great if you could test this. Can you please switch to the Make sure you refresh your browser cache - and click the 🔄 refresh button in the top right corner. Thanks in advance, |
Oh also, please make sure your SCAN_SUBNETS is configured correctly: https://github.com/jokob-sk/NetAlertX/blob/main/docs/SUBNETS.md |
It looks like the IPS is blocking some requests related with SQL injection that are related with the container and the reverse proxy, a false positive. I have still to doble check everything and whitelist to see if it works 2025-01-12 22:26:22IPSmessageid="07002" log_type="IDP" log_component="Signatures" log_subtype="Drop" ips_policy="" ips_policy_id="10" fw_rule_id="38" fw_rule_name="Webserver(40) to HA(10)" fw_rule_section="Local rule" user="" sig_id="13990" message="SQL union select - possible sql injection attempt - GET parameter" classification="Misc Attack" rule_priority="1" src_ip="10.10.40.10" src_country="R1" dst_ip="10.10.10.10" dst_country="R1" protocol="TCP" src_port="49954" dst_port="20211" OS="BSD,Linux,Mac,Other,Solaris,Unix,Windows" category="sql" victim="Server" Copiar al portapapeles 40.10 is traefik 10.10 is the host where NetAlertX is running |
@lordraiden thanks for the update. The UI generates a few SQL queries and since NAX is setup as a framework, it's expected. If you worry about this enable the login feature. I treat everyone accessing the UI (after logging in) as a safe actor. please make sure your SCAN_SUBNETS is configured correctly if your devices still don't show up: https://github.com/jokob-sk/NetAlertX/blob/main/docs/SUBNETS.md |
Is there an existing issue for this?
The issue occurs in the following browsers. Select at least 2.
Current Behavior
Arp scan finish correctly but devices aren't being populated
Expected Behavior
Device list not empty
After finishing the ARP scan it never creates the new devices
Steps To Reproduce
nginx log
app.conf
docker-compose.yml
What installation are you running?
Production (netalertx)
app.log
14:25:27 [Settings] ⚠ ERROR - JSONDecodeError or FileNotFoundError for file /app/api/table_settings.json
14:25:27 [MAIN] Setting up ...
14:25:27 [conf.tz] Setting up ...
14:25:27
14:25:27 The backend restarted (started). If this is unexpected check https://bit.ly/NetAlertX_debug for troubleshooting tips.
14:25:27
14:25:27 Permissions check (All should be True)
14:25:27 ------------------------------------------------
14:25:27 /config/app.conf | READ | True
14:25:27 /config/app.conf | WRITE | True
14:25:27 /db/app.db | READ | True
14:25:27 /db/app.db | WRITE | True
14:25:27 ------------------------------------------------
14:25:27 [Setup] Attempting to fix permissions.
14:25:27 [Setup] Attempting to fix permissions.
14:25:27 [Version check] Running the latest version.
14:25:27 [Database] Opening DB
14:25:27 [upgradeDB] Re-creating Settings table
14:25:27 [upgradeDB] Removing Pholus_Scan table
14:25:27 [upgradeDB] Re-creating Parameters table
14:25:28 [Config] reading config file
14:25:28 [Config] Plugins: Number of all plugins (including not loaded): 42
14:25:28 [Plugin utils] ---------------------------------------------
14:25:28 [Plugin utils] display_name: Arp-Scan (Network scan)
14:25:28 [Plugin utils] description: This plugin is to execute an arp-scan on the local network
14:25:28 [Plugin utils] ---------------------------------------------
14:25:28 [Plugin utils] display_name: AVAHISCAN (Name discovery)
14:25:28 [Plugin utils] description: A plugin to discover device names via mDNS.
14:25:28 [Plugin utils] ---------------------------------------------
14:25:28 [Plugin utils] display_name: Internet-Check
14:25:28 [Plugin utils] description: A plugin to check your internet connectivity and IP.
14:25:28 [Plugin utils] ---------------------------------------------
14:25:28 [Plugin utils] display_name: NSLOOKUP (Name discovery)
14:25:28 [Plugin utils] description: A plugin to discover device names.
14:25:28 [Plugin utils] ---------------------------------------------
14:25:28 [Plugin utils] display_name: Email publisher (SMTP)
14:25:28 [Plugin utils] description: A plugin to publish a notification via Email (SMTP) gateway.
14:25:28 [Plugin utils] ---------------------------------------------
14:25:28 [Plugin utils] display_name: CSV backup
14:25:28 [Plugin utils] description: A plugin to auto-generate devices.csv backups.
14:25:28 [Plugin utils] ---------------------------------------------
14:25:28 [Plugin utils] display_name: Custom properties
14:25:28 [Plugin utils] description: Settings related to the custom properties functionality on a device.
14:25:28 [Plugin utils] ---------------------------------------------
14:25:28 [Plugin utils] display_name: DB cleanup
14:25:28 [Plugin utils] description: A plugin to schedule database cleanup & upkeep tasks.
14:25:28 [Plugin utils] ---------------------------------------------
14:25:28 [Plugin utils] display_name: Maintenance
14:25:28 [Plugin utils] description: A plugin for maintenance tasks.
14:25:28 [Plugin utils] ---------------------------------------------
14:25:28 [Plugin utils] display_name: New Devices
14:25:28 [Plugin utils] description: The template used for new devices.
14:25:28 [Plugin utils] ---------------------------------------------
14:25:28 [Plugin utils] display_name: Notification Processing
14:25:28 [Plugin utils] description: A plugin to for advanced notification processing.
14:25:28 [Plugin utils] ---------------------------------------------
14:25:28 [Plugin utils] display_name: Set password
14:25:28 [Plugin utils] description: A simple plugin to set the web ui password on app start.
14:25:28 [Plugin utils] ---------------------------------------------
14:25:28 [Plugin utils] display_name: Sync Hub
14:25:28 [Plugin utils] description: Plugin to synchronize multiple NetAlertX instances.
14:25:29 [Plugin utils] ---------------------------------------------
14:25:29 [Plugin utils] display_name: UI settings
14:25:29 [Plugin utils] description: Plugin to adjust UI settings.
14:25:29 [Plugin utils] ---------------------------------------------
14:25:29 [Plugin utils] display_name: Vendor update
14:25:29 [Plugin utils] description: A plugin to schedule vendor database updates for mac based vendor resolution.
14:25:29 [Plugin utils] ---------------------------------------------
14:25:29 [Plugin utils] display_name: Workflows
14:25:29 [Plugin utils] description: A plugin to adjust behavior of workflows.
14:25:29 [Config] ⛔ Unloading WEBMON
14:25:29 [Config] ⛔ Unloading UNDIS
14:25:29 [Config] ⛔ Unloading INTRSPD
14:25:29 [Config] ⛔ Unloading DDNS
14:25:29 [Config] ⛔ Unloading WEBHOOK
14:25:29 [Config] ⛔ Unloading TELEGRAM
14:25:29 [Config] ⛔ Unloading PUSHSAFER
14:25:29 [Config] ⛔ Unloading PUSHOVER
14:25:29 [Config] ⛔ Unloading NTFY
14:25:29 [Config] ⛔ Unloading MQTT
14:25:29 [Config] ⛔ Unloading APPRISE
14:25:29 [Config] ⛔ Unloading NMAP
14:25:29 [Config] ⛔ Unloading ICMP
14:25:29 [Config] ⛔ Unloading NMAPDEV
14:25:29 [Config] ⛔ Unloading NBTSCAN
14:25:29 [Config] ⛔ Unloading DHCPSRVS
14:25:29 [Config] ⛔ Unloading DHCPLSS
14:25:29 [Config] ⛔ Unloading PIHOLE
14:25:29 [Config] ⛔ Unloading UNFIMP
14:25:29 [Config] ⛔ Unloading SNMPDSC
14:25:29 [Config] ⛔ Unloading MTSCAN
14:25:29 [Config] ⛔ Unloading LUCIRPC
14:25:29 [Config] ⛔ Unloading WOL
14:25:29 [Config] ⛔ Unloading OMDSDN
14:25:29 [Config] ⛔ Unloading IPNEIGH
14:25:29 [Config] ⛔ Unloading FREEBOX
14:25:29 [Config] Number of Plugins to load: 16
14:25:29 [Config] Plugins to load: ['ARPSCAN', 'AVAHISCAN', 'INTRNT', 'NSLOOKUP', 'SMTP', 'CSVBCKP', 'CUSTPROP', 'DBCLNP', 'MAINT', 'NEWDEV', 'NTFPRCS', 'SETPWD', 'SYNC', 'UI', 'VNDRPDT', 'WORKFLOWS']
14:25:29 [Config] App upgraded 🚀
14:25:29 [graphql_server] Starting on port: 20212
14:25:29 [Config] Imported new settings config
14:25:29 [Scheduler] run for ARPSCAN: NO
14:25:29 [Scheduler] run for INTRNT: NO
14:25:29 [Scheduler] run for CSVBCKP: NO
14:25:29 [Scheduler] run for DBCLNP: NO
14:25:29 [Scheduler] run for MAINT: NO
14:25:29 [Scheduler] run for VNDRPDT: NO
14:25:29 [Plugin utils] ---------------------------------------------
14:25:29 [Plugin utils] display_name: AVAHISCAN (Name discovery)
14:25:29 [Plugins] Executing: python3 /app/front/plugins/avahi_scan/avahi_scan.py
14:25:30 [Plugins] Output: [plugin_helper] reading config file
14:25:30 [AVAHISCAN] In script
14:25:30 [Database] Opening DB
14:25:30 [AVAHISCAN] Unknown devices count: 0
14:25:30 [AVAHISCAN] Script finished
14:25:30 [Plugins] Processed and deleted file: /app/log/plugins/last_result.AVAHISCAN.log
14:25:30 [Plugins] No output received from the plugin "AVAHISCAN"
14:25:30 [Plugin utils] ---------------------------------------------
14:25:30 [Plugin utils] display_name: NSLOOKUP (Name discovery)
14:25:30 [Plugins] Executing: python3 /app/front/plugins/nslookup_scan/nslookup.py
14:25:30 [Plugins] Output: [plugin_helper] reading config file
14:25:30 [NSLOOKUP] In script
14:25:30 [Database] Opening DB
14:25:30 [NSLOOKUP] Unknown devices count: 0
14:25:30 [NSLOOKUP] Script finished
14:25:30 [Plugins] Processed and deleted file: /app/log/plugins/last_result.NSLOOKUP.log
14:25:30 [Plugins] No output received from the plugin "NSLOOKUP"
14:25:30 [Notification] Check if something to report
14:25:30 [Notification] Included sections: ['new_devices', 'down_devices', 'events']
14:25:30 [Notification] Open text Template
14:25:30 [Notification] Open html Template
14:25:30 [Notification] Using template/app/front/report_templates/report_template.html
14:25:30 [Notification] New Devices sections done.
14:25:30 [Notification] Down Devices sections done.
14:25:30 [Notification] Reconnected Down Devices sections done.
14:25:30 [Notification] Events sections done.
14:25:30 [Notification] Plugins sections done.
14:25:30 [Send API] Updating notification_* files in /app/api/
14:25:30 [Notification] Udating API files
14:25:30 [Notification] Notifications changes: 18
14:25:30 [MAIN] Process: Idle
14:29:25 [graphql_schema] Applying status filter: my_devices
14:29:25 [graphql_schema] allowed_statuses: ['online', 'offline', 'archived', 'new', 'down']
14:29:30 [Plugins] Output: [plugin_helper] reading config file
14:29:19 [ARP Scan] In script
14:29:19 [ARPSCAN] userSubnetsParam: 10.10.10.0/24 --interface=eth0
14:29:19 [Database] Opening DB
14:29:30 [ARPSCAN] arpscan_output: Interface: eth0, type: EN10MB, MAC: 04:d4:c4:4b:30:66, IPv4: 10.10.10.10
Starting arp-scan 1.10.0 with 256 hosts (https://github.com/royhills/arp-scan)
ANONYMIZED
19 packets received by filter, 0 packets dropped by kernel
Ending arp-scan 1.10.0: 256 hosts scanned in 11.095 seconds (23.07 hosts/sec). 17 responded
14:29:30 [ARPSCAN] Found: Devices without duplicates 17
14:29:30 [ARPSCAN] Devices List len:17
ANONYMIZED
14:29:30 [Plugins] Processed and deleted file: /app/log/plugins/last_result.ARPSCAN.log
14:29:30 [Plugins] SUCCESS, received 17 entries
14:29:30 [2025-01-12 14:29:30+01:00] END Run: ARPSCAN
14:29:30 [ExecutionLog] Processed event: run
14:29:30 [check_and_run_user_event] INFO: Executed events: run with param ARPSCAN
14:29:35 [Scheduler] run for ARPSCAN: NO
14:29:35 [Scheduler] run for INTRNT: NO
14:29:35 [Scheduler] run for CSVBCKP: NO
14:29:35 [Scheduler] run for DBCLNP: NO
14:29:35 [Scheduler] run for MAINT: NO
14:29:35 [Scheduler] run for VNDRPDT: NO
14:29:35 [Process Scan] Exclude ignored devices
14:29:35 [Process Scan] Processing scan results
14:29:35 [Process Scan] Print Stats
14:29:35 [Scan Stats] Devices Detected.......: 18
14:29:35 [Scan Stats] New Devices............: 18
14:29:35 [Scan Stats] Down Alerts............: 1
14:29:35 [Scan Stats] New Down Alerts........: 1
14:29:35 [Scan Stats] New Connections........: 0
14:29:35 [Scan Stats] Disconnections.........: 1
14:29:35 [Scan Stats] IP Changes.............: 0
14:29:35 [Scan Stats] Scan Method Statistics:
14:29:35 ARPSCAN: 17
14:29:35 local_MAC: 1
14:29:35 [Process Scan] Stats end
14:29:35 [Process Scan] Sessions Events (connect / disconnect)
14:29:35 [Process Scan] Creating new devices
Debug enabled
The text was updated successfully, but these errors were encountered: