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:
@@ -31,6 +31,8 @@ render_role() {
|
||||
-e "s|@@BASE_DN@@|${BASE_DN}|g" \
|
||||
-e "s|@@ADMIN_PASSWORD@@|${LAB_ADMIN_PASSWORD}|g" \
|
||||
-e "s|@@SAFE_MODE_PASSWORD@@|${LAB_SAFE_MODE_PASSWORD}|g" \
|
||||
-e "s|@@LAB_DC_IP@@|${LAB_DC_IP}|g" \
|
||||
-e "s|@@LAB_GATEWAY@@|${LAB_GATEWAY:-}|g" \
|
||||
"$src" > "$dst"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user