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
- `cp -r ./export/portal /services/EnoCTFPortal/data/teamdata`(or whereever it is)
52
57
- Builds VMs
53
58
- `cd /bambictf/packer`
54
59
- `packer build bambichecker.json`
55
-
- ...
60
+
- `packer build bambielk.json`
61
+
- `packer build bambiengine.json`
62
+
- `packer build bambirouter.json`
63
+
- `packer build bambivulnbox.json`
56
64
- Note down vulnbox snapshot id, pass to EnoCTFPortal (`curl -H "Authorization: Bearer $HCLOUD_TOKEN" 'https://api.hetzner.cloud/v1/images?type=snapshot'`)
57
65
- Create `./terraform/terraform.tfvars` (see `./terraform/terraform.tfvars.sample` for reference)
58
66
- `cd /bambictf/terraform`
59
67
- `terraform init`
60
68
- `terraform apply`
61
69
62
70
## Open game network
71
+
The time set in `./ansible/config_bambi.yml` should take care. Otherwise call
63
72
- `iptables -A FORWARD -o router -j ACCEPT`(on *every* gateway)
64
73
65
74
## Emergency Port Forwards
@@ -72,3 +81,10 @@ on every router
72
81
73
82
## Rsync stuff
74
83
- `while true; do rsync /services/data/*.json [email protected]:/services/EnoCTFPortal_bambi7/scoreboard; sleep 5; done` TODO ask Lucas about loops and stuff
84
+
85
+
## Running the actual CTF
86
+
* terraform easily takes 30-60 minutes
87
+
* build more configs than you actually expect, to have a safeguard
88
+
* to add a new team during the CTF
89
+
* increase teamcount in terraform and run `terraform apply`
90
+
* add new team on EnoEngine `ctf.json`, and reapply config (see there)
0 commit comments