this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 148 lines 3.2 kB view raw view rendered
1# Mini-Hack Quick Start Guide 2 3## Network Topology 4 5``` 6External Network (172.20.0.0/16) 7├── Kali External: 172.20.0.2 8├── Router External: 172.20.<team>.1 9└── Scoring Server: 172.20.0.1 10 11Internal Network (192.168.<team>.0/24) 12├── Router Internal: 192.168.<team>.1 13├── Ubuntu Web Server: 192.168.<team>.2 14└── Kali Internal: 192.168.<team>.100 15``` 16 17**Your team number** is randomly assigned on each deployment (e.g., 213, 195, etc.) 18 19## Objectives (Turn Lights Green) 20 211. ✅ Router online - responds to ping on external IP 222. ✅ Web server accessible - HTTP traffic routes through router to internal server 233. ✅ Service running - Apache returns content from internal web server 24 25## Step-by-Step Checklist 26 27### 1. Find Your Team Number 28 29**On Kali External**: 30 31Check scoreboard at http://172.20.1 for team number (username: `sandbox` pass: `password`). 32 33### 2. Configure Router 34 35**Login to MikroTik** (via ProxMox console or SSH): 36 37```bash 38# Default login 39admin 40<press Enter for blank password> 41 42# Set a password when prompted 43<choose password> 44``` 45 46**Assign IP addresses**: 47 48```bash 49/interface print 50 51# External interface 52/ip address add address=172.20.<team>.1/16 interface=ether# 53 54# Internal interface 55/ip address add address=192.168.<team>.1/24 interface=ether# 56 57# Verify 58/ip address print 59``` 60 61The webgui can't be used here because there are no ip addresses assigned to it yet. 62 63### 3. Configure Ubuntu Web Server 64 65**Assign static IP**: 66 67```bash 68sudo nano /etc/netplan/01-network-manager-all.yaml 69``` 70 71```yaml 72network: 73 version: 2 74 ethernets: 75 ens18: 76 addresses: 77 - 192.168.<team>.2/24 78 routes: 79 - to: default 80 via: 192.168.<team>.1 81``` 82 83```bash 84sudo netplan apply 85ip addr show # Verify IP 86ping 192.168.<team>.1 # Test router connectivity 87``` 88 89or open settings -> enable wired and config there 90 91**Start Apache**: 92 93```bash 94sudo systemctl restart apache2 95sudo systemctl status apache2 # Should show "active (running)" 96``` 97 98```bash 99sudo vi /var/www/html/index.html # change team number 100``` 101 102### 4. Configure Port Forwarding (Router) 103 104**Web GUI**: 105 106``` 107http://172.20.<team>.1:8080 108``` 109 1101. Go to **Quick Set****Port Mapping** (enable nat here and change gateway to `172.20.1.1`) 1112. Click **New** 112 - Name: `www-tcp` 113 - Protocol: `TCP` 114 - Port: `80` 115 - Forward To: `192.168.<team>.2` 116 - Port: `80` 1173. Click **OK** 1184. Repeat for UDP: 119 - Name: `www-udp` 120 - Protocol: `UDP` 121 - Port: `80` 122 - Forward To: `192.168.<team>.2` 123 - Port: `80` 124 125### 5. Test From External Network 126 127**On Kali External**: 128 129```bash 130ping 172.20.<team>.1 # Router should respond 131curl http://172.20.<team>.1 # Should show web content from internal server 132``` 133 134**Check scoreboard**: `http://172.20.1` 135 136All lights should be green! 137 138## Configuration Files Reference 139 140**Router**: Web GUI at `http://172.20.<team>.1:8080` or CLI via console 141 142**Ubuntu Web Server**: 143 144- Network: `/etc/netplan/01-network-manager-all.yaml` 145- Apache: `sudo systemctl restart apache2` 146- Website content: `/var/www/html/` 147 148**Kali Machines**: For testing only, no configuration needed