Add optional Kali attacker VM and DHCP for the lab bridge

lab.sh kali install|up|down|reset|status extracts the official Kali QEMU
image once, keeps it as a read-only base with a throwaway overlay, and
boots two NICs: the lab bridge (for the exercise) and user networking (so
apt works without opening the isolation policy).

DC01 now serves DHCP on 10.10.10.100-200 with DNS and domain options but no
router: devices on the bridge configure themselves while the lab stays
isolated. A reservation pins 10.10.10.101 to the Kali MAC.

Also fixed backend_stop, which still called the pre-refactor WinRM helper
and fell back to killing the VMs.
This commit is contained in:
2026-10-22 19:55:15 -04:00
parent b077d2c7d5
commit 77d123a9cf
10 changed files with 221 additions and 2 deletions
+10
View File
@@ -135,6 +135,16 @@ cette VM, installez WireGuard et collez la configuration produite par :
Chaque participant importe son fichier `.conf` : il obtient une adresse dans `10.10.10.0/24` et
n'a plus qu'à suivre `docs/prerequis.md` (sans l'étape de route, le tunnel la fournit).
## DHCP du laboratoire
DC01 sert aussi DHCP sur le segment du laboratoire (plage `10.10.10.100-200`, DNS et domaine
fournis, **aucune passerelle** : le laboratoire est isolé). Tout appareil branché sur le pont se
configure seul. Une réservation fixe `10.10.10.101` est créée pour la VM Kali.
Conséquence pratique : les participants qui amènent leur propre machine sur `192.168.10.0/24`
suivent toujours `docs/prerequis.md` (route + DNS), mais une machine branchée directement sur le
pont n'a rien à configurer.
## Réseau et isolation
L'hôte a une adresse sur `br-lab` (`10.10.10.230`) et une sur le réseau du bureau. Le pare-feu