You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/01-foundations/lab-setup.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,16 @@ ansible_user: admin
50
50
ansible_port: 2222
51
51
```
52
52
53
+
Always pass a profile overlay when hardening:
54
+
55
+
```bash
56
+
# Disposable lab
57
+
-e @profiles/lab.yml
58
+
59
+
# Real host (edit ignoreip in profiles/prod.yml first)
60
+
-e @profiles/prod.yml
61
+
```
62
+
53
63
## Why
54
64
55
65
Separating **control node** and **target** matches how you will operate later: automation runs from CI or an admin workstation, not from the box being locked down.
@@ -60,7 +70,8 @@ Snapshots and consoles turn irreversible mistakes into five-minute recoveries, w
60
70
61
71
```bash
62
72
ssh -i ~/.ssh/lab_ed25519 root@SERVER_IP 'uname -a && cat /etc/os-release | head -3'
Copy file name to clipboardExpand all lines: docs/03-network/firewall.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,8 @@ ufw --force enable
30
30
ufw status verbose
31
31
```
32
32
33
+
Ansible: role `firewall_stack` (tags `firewall`, `ids`) — also wires Fail2Ban, PSAD, and dedicated iptables logs. Pair with `-e @profiles/lab.yml` or `prod.yml`.
34
+
33
35
### Rate limiting
34
36
35
37
`ufw limit` uses iptables recent-match style limiting on new TCP connections. It will not stop a distributed slow scan, but it blunts simple floods against SSH.
Diagrams (Mermaid) appear where order matters: kit layers and playbook flow in the [root README](../README.md), anti-lockout SSH path here and in [ssh-service](02-access-control/ssh-service.md), MFA rollout in [ssh-mfa](02-access-control/ssh-mfa.md).
0 commit comments