feat(agent-scan-network): implémentation Phase 2 — découverte réseau
- Scan ping TCP multi-ports (sans root requis) - Lecture table ARP Linux (/proc/net/arp) - Détection 20 services par scan de ports TCP - Base OUI embarquée (~70 constructeurs courants) - API JSON locale Axum sur :9100 (GET /devices, GET /health) - Push automatique vers backend /api/v1/network - Enregistrement agent au démarrage - Config YAML (subnet 10.0.0.0/22, concurrence, timeouts) - ROADMAP Phase 1 et 2 marquées complètes Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
backend:
|
||||
url: http://localhost:8080
|
||||
token: "" # token d'authentification SentinelMesh
|
||||
|
||||
agent:
|
||||
id: "" # auto-généré si vide (scan-<hostname>)
|
||||
hostname: "" # auto-détecté depuis /etc/hostname si vide
|
||||
|
||||
scan:
|
||||
subnets:
|
||||
- 10.0.0.0/22 # réseau principal
|
||||
interval_seconds: 60
|
||||
ping_timeout_ms: 1000
|
||||
service_timeout_ms: 300
|
||||
concurrency: 50
|
||||
ports:
|
||||
- 22 # SSH
|
||||
- 80 # HTTP
|
||||
- 443 # HTTPS
|
||||
- 445 # SMB
|
||||
- 2049 # NFS
|
||||
- 1883 # MQTT
|
||||
- 2375 # Docker API
|
||||
- 8006 # Proxmox
|
||||
- 8123 # Home Assistant
|
||||
- 3000 # Grafana
|
||||
- 9090 # Prometheus
|
||||
- 9100 # Node Exporter
|
||||
|
||||
api:
|
||||
listen: "0.0.0.0:9100" # API locale de l'agent
|
||||
Reference in New Issue
Block a user