90 lines
1.9 KiB
YAML
90 lines
1.9 KiB
YAML
# Configuration IPWatch
|
|
# Basé sur consigne-parametrage.md
|
|
|
|
app:
|
|
name: "IPWatch"
|
|
version: "1.0.0"
|
|
debug: true
|
|
|
|
network:
|
|
cidr: "10.0.0.0/22"
|
|
gateway: "10.0.0.1"
|
|
dns:
|
|
- "8.8.8.8"
|
|
- "8.8.4.4"
|
|
|
|
# Sous-réseaux organisés en sections
|
|
subnets:
|
|
- name: "static_vm"
|
|
cidr: "10.0.0.0/24"
|
|
start: "10.0.0.1"
|
|
end: "10.0.0.255"
|
|
description: "Machines virtuelles statiques"
|
|
- name: "dhcp"
|
|
cidr: "10.0.1.0/24"
|
|
start: "10.0.1.1"
|
|
end: "10.0.1locations.255"
|
|
description: "DHCP"
|
|
- name: "iot"
|
|
cidr: "10.0.2.0/24"
|
|
start: "10.0.2.1"
|
|
end: "10.0.2.255"
|
|
description: "IoT"
|
|
|
|
# IPs connues avec métadonnées
|
|
ip_classes:
|
|
"10.0.0.1":
|
|
name: "Gateway"
|
|
location: "Réseau"
|
|
host: "Routeur"
|
|
|
|
scan:
|
|
ping_interval: 600 # Intervalle scan ping (secondes)
|
|
port_scan_interval: 1200 # Intervalle scan ports (secondes)
|
|
parallel_pings: 100 # Nombre de pings simultanés
|
|
timeout: 1.0 # Timeout réseau (secondes)
|
|
|
|
ports:
|
|
ranges:
|
|
- "22" # SSH
|
|
- "80" # HTTP
|
|
- "443" # HTTPS
|
|
- "3389" # RDP
|
|
- "8080" # HTTP alternatif
|
|
- "3306" # MySQL
|
|
- "5432" # PostgreSQL
|
|
|
|
locations:
|
|
- "Bureau"
|
|
- "Salon"
|
|
- "Comble"
|
|
- "Bureau RdC"
|
|
|
|
# la localisation est herité de l'host il faudrait adapter config en consequence
|
|
hosts:
|
|
- "physique"
|
|
- "elitedesk"
|
|
- "m710Q"
|
|
- "HP Proliant"
|
|
- "pve MSI"
|
|
- "HP Proxmox"
|
|
|
|
|
|
history:
|
|
retention_hours: 24 # Conserver 24h d'historique
|
|
|
|
ui:
|
|
offline_transparency: 0.5 # Transparence des IPs offline
|
|
show_mac: true
|
|
show_vendor: true
|
|
|
|
colors:
|
|
free: "#75715E" # IP libre (gris Monokai)
|
|
online_known: "#A6E22E" # En ligne + connue (vert)
|
|
online_unknown: "#66D9EF" # En ligne + inconnue (cyan)
|
|
offline_known: "#F92672" # Hors ligne + connue (rose/rouge)
|
|
offline_unknown: "#AE81FF" # Hors ligne + inconnue (violet)
|
|
|
|
database:
|
|
path: "./data/db.sqlite"
|