···4455```
66External Network (172.20.0.0/16)
77-├── Kali External: 172.20.2
77+├── Kali External: 172.20.0.2
88├── Router External: 172.20.<team>.1
99-└── Scoring Server: 172.20.1
99+└── Scoring Server: 172.20.0.1
10101111Internal Network (192.168.<team>.0/24)
1212├── Router Internal: 192.168.<team>.1
···2727### 1. Find Your Team Number
28282929**On Kali External**:
3030-```bash
3131-ip addr show # Look for 172.20.X
3232-# If you see 172.20.2, your team number is 2
3333-# Check scoreboard at http://172.20.1 for confirmation
3434-```
3030+3131+Check scoreboard at http://172.20.1 for team number (username: `sandbox` pass: `password`).
35323633### 2. Configure Router
37343835**Login to MikroTik** (via ProxMox console or SSH):
3636+3937```bash
4038# Default login
4139admin
···4644```
47454846**Assign IP addresses**:
4747+4948```bash
4949+/interface print
5050+5051# External interface
5151-/ip address add address=172.20.<team>.1/16 interface=ether3
5252+/ip address add address=172.20.<team>.1/16 interface=ether#
52535354# Internal interface
5454-/ip address add address=192.168.<team>.1/24 interface=ether4
5555+/ip address add address=192.168.<team>.1/24 interface=ether#
55565657# Verify
5758/ip address print
5859```
59606060-**Or use Web GUI**: `http://172.20.<team>.1:8080`
6161-- Login: `admin` / `<your password>`
6262-- Go to **Quick Set**
6363-- Enter external IP: `172.20.<team>.1/16`
6464-- Enter internal IP: `192.168.<team>.1/24`
6565-- ✅ **Check "Enable NAT"** (required!)
6666-- Click **Apply Configuration**
6161+The webgui can't be used here because there are no ip addresses assigned to it yet.
67626863### 3. Configure Ubuntu Web Server
69647065**Assign static IP**:
6666+7167```bash
7268sudo nano /etc/netplan/01-network-manager-all.yaml
7369```
···9086ping 192.168.<team>.1 # Test router connectivity
9187```
92888989+or open settings -> enable wired and config there
9090+9391**Start Apache**:
9292+9493```bash
9594sudo systemctl restart apache2
9695sudo systemctl status apache2 # Should show "active (running)"
9796```
98979999-**Test locally**:
10098```bash
101101-curl http://192.168.<team>.2 # Should return HTML
9999+sudo vi /var/www/html/index.html # change team number
102100```
103101104102### 4. Configure Port Forwarding (Router)
105103106106-**Web GUI Method** (recommended):
104104+**Web GUI**:
105105+107106```
108107http://172.20.<team>.1:8080
109108```
110109111111-1. Go to **Quick Set** → **Port Mapping**
110110+1. Go to **Quick Set** → **Port Mapping** (enable nat here and change gateway to `172.20.1.1`)
1121112. Click **New**
113112 - Name: `www-tcp`
114113 - Protocol: `TCP`
···126125### 5. Test From External Network
127126128127**On Kali External**:
128128+129129```bash
130130ping 172.20.<team>.1 # Router should respond
131131curl http://172.20.<team>.1 # Should show web content from internal server
···135135136136All lights should be green!
137137138138-## Quick Troubleshooting
139139-140140-| Problem | Check |
141141-|---------|-------|
142142-| Router not pingable | Verify IP on ether3: `/ip address print` |
143143-| Web not accessible | 1. Is Apache running? 2. Did you enable NAT? 3. Port forwarding rules exist? |
144144-| Internal server can't reach router | Check internal IP on ether4, verify gateway in netplan |
145145-| Lights still red | Wait 30 seconds for scoring refresh, check exact IPs match topology |
146146-147138## Configuration Files Reference
148139149140**Router**: Web GUI at `http://172.20.<team>.1:8080` or CLI via console
150141151142**Ubuntu Web Server**:
143143+152144- Network: `/etc/netplan/01-network-manager-all.yaml`
153145- Apache: `sudo systemctl restart apache2`
154146- Website content: `/var/www/html/`
155147156148**Kali Machines**: For testing only, no configuration needed
157157-158158-## Common Mistakes
159159-160160-❌ Forgot to enable NAT on router
161161-❌ Port forwarding only has TCP rule (need UDP too)
162162-❌ Wrong team number in IP addresses
163163-❌ Apache not started on Ubuntu
164164-❌ Netplan syntax error (YAML is whitespace-sensitive)
165165-❌ Router interface names wrong (check with `interface print`)
166166-167167-## Time-Saving Tips
168168-169169-1. Use **web GUI for router** - faster than CLI for NAT/port forwarding
170170-2. Copy/paste team number once you know it - avoid typos
171171-3. Test each step before moving on (ping, curl, status checks)
172172-4. If stuck, verify each light's requirement on scoreboard