···
1
-
# Linux Service Configuration Writeups
1
+
# NCAE Linux Competition Tools
4
+
> These writeups are tailored for NCAE cybersecurity competitions and may not reflect production best practices.
6
+
> Focus is on speed and competition scenarios, not enterprise deployment.
Quick reference guides for configuring services in Linux competitions. Assumes basic Linux knowledge (filesystem navigation, systemctl, ssh, etc.).
7
-
0. **[Mini-Hack Quick Start](00-mini-hack-overview.md)** - Complete mini-hack walkthrough checklist
8
-
1. **[Services Overview](01-services-overview.md)** - General approach to any service
9
-
2. **[Apache Web Service](02-apache-web-service.md)** - HTTP/HTTPS server configuration
10
-
3. **[SSH Service](03-ssh-service.md)** - Remote access, keys, security
11
-
4. **[Network Configuration](04-network-configuration.md)** - Static IPs across different distros
12
-
5. **[DNS, Rsync, Cron](05-dns-rsync-cron.md)** - Name resolution and automated backups
13
-
6. **[UFW Firewall](06-ufw-firewall.md)** - Ubuntu firewall configuration
14
-
7. **[Active Connection Defense](07-active-connection-defense.md)** - Monitor and kill malicious connections
15
-
8. **[MikroTik Router](08-mikrotik-router.md)** - Router configuration (2025 competition)
14
+
├── 00-mini-hack-overview.md # Complete mini-hack walkthrough checklist
15
+
├── 01-services-overview.md # General approach to any service
16
+
├── 02-apache-web-service.md # HTTP/HTTPS server configuration
17
+
├── 03-ssh-service.md # Remote access, keys, security
18
+
├── 04-network-configuration.md # Static IPs across different distros
19
+
├── 05-dns-rsync-cron.md # Name resolution and automated backups
20
+
├── 06-ufw-firewall.md # Ubuntu firewall configuration
21
+
├── 07-active-connection-defense.md # Monitor and kill malicious connections
22
+
└── 08-mikrotik-router.md # Router configuration (2025 minitik)
## Service-Specific Quick Reference
apache2 # Ubuntu/Debian/Kali
···
### Network Configuration Files
27
-
| Distribution | Config Location |
28
-
|--------------|----------------|
29
-
| Kali/Debian | `/etc/network/interfaces` |
30
-
| Ubuntu | `/etc/netplan/*.yaml` |
36
+
| Distribution | Config Location |
37
+
| ------------ | ---------------------------------------- |
38
+
| Kali/Debian | `/etc/network/interfaces` |
39
+
| Ubuntu | `/etc/netplan/*.yaml` |
| CentOS/RHEL | `/etc/sysconfig/network-scripts/ifcfg-*` |
chmod 600 ~/.ssh/id_rsa # Private key
···
Regenerate host keys on cloned VMs:
sudo systemctl restart sshd
···
### Active Connection Monitoring
sudo netstat -tunap # All connections with PIDs
sudo netstat -tunap | grep ESTABLISHED # Only active
···
/ip address add address=192.168.1.1/24 interface=ether3
···
Default login: `admin` / (blank password)
**Rsync common patterns**:
rsync -av source/ dest/ # Basic sync
rsync -av --delete source/ dest/ # Mirror (delete extra files in dest)
···
**Cron syntax**: `minute hour day month weekday command`
0 2 * * * /path/to/backup.sh # Daily at 2 AM
*/15 * * * * /path/to/script.sh # Every 15 minutes
···
## Distribution Differences
98
-
| Feature | Ubuntu | Kali | CentOS/RHEL |
99
-
|---------|--------|------|-------------|
100
-
| Apache service | `apache2` | `apache2` | `httpd` |
101
-
| Network config | netplan YAML | interfaces | ifcfg-* scripts |
102
-
| Firewall | UFW | iptables | firewall-cmd |
103
-
| Cron service | `cron` | `cron` | `crond` |
116
+
| Feature | Ubuntu | Kali | CentOS/RHEL |
117
+
| -------------- | ------------ | ---------- | ---------------- |
118
+
| Apache service | `apache2` | `apache2` | `httpd` |
119
+
| Network config | netplan YAML | interfaces | ifcfg-\* scripts |
120
+
| Firewall | UFW | iptables | firewall-cmd |
121
+
| Cron service | `cron` | `cron` | `crond` |
**Router (2025)**: All distributions use MikroTik (replaces CentOS router)
···
## Critical Configuration Locations
120
-
| Service | Config File(s) |
121
-
|---------|---------------|
122
-
| SSH | `/etc/ssh/sshd_config` |
123
-
| Apache (Ubuntu) | `/etc/apache2/apache2.conf`, `/etc/apache2/sites-available/` |
124
-
| Apache (CentOS) | `/etc/httpd/conf/httpd.conf`, `/etc/httpd/conf.d/` |
125
-
| Network (Kali) | `/etc/network/interfaces` |
126
-
| Network (Ubuntu) | `/etc/netplan/*.yaml` |
127
-
| Network (CentOS) | `/etc/sysconfig/network-scripts/ifcfg-*` |
128
-
| DNS resolution | `/etc/resolv.conf` |
129
-
| Cron jobs | `crontab -e` (per-user), `/etc/crontab` (system-wide) |
138
+
| Service | Config File(s) |
139
+
| ---------------- | ------------------------------------------------------------ |
140
+
| SSH | `/etc/ssh/sshd_config` |
141
+
| Apache (Ubuntu) | `/etc/apache2/apache2.conf`, `/etc/apache2/sites-available/` |
142
+
| Apache (CentOS) | `/etc/httpd/conf/httpd.conf`, `/etc/httpd/conf.d/` |
143
+
| Network (Kali) | `/etc/network/interfaces` |
144
+
| Network (Ubuntu) | `/etc/netplan/*.yaml` |
145
+
| Network (CentOS) | `/etc/sysconfig/network-scripts/ifcfg-*` |
146
+
| DNS resolution | `/etc/resolv.conf` |
147
+
| Cron jobs | `crontab -e` (per-user), `/etc/crontab` (system-wide) |
151
+
These writeups are based on real NCAE competition experience and consolidate knowledge from:
153
+
- NCAE Cyber Games competition materials
154
+
- Various Linux distribution documentation
155
+
- Hands-on competition debugging and troubleshooting
158
+
> The main repository is hosted on [tangled.org](https://tangled.org/dunkirk.sh/ncae-tools), with GitHub serving as a mirror.
161
+
<img src="https://raw.githubusercontent.com/taciturnaxolotl/carriage/master/.github/images/line-break.svg" />
165
+
© 2025-present <a href="https://github.com/taciturnaxolotl">Kieran Klukas</a>
169
+
<a href="https://github.com/taciturnaxolotl/ncae-tools/blob/main/LICENSE.md"><img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=License&message=MIT&logoColor=d9e0ee&colorA=363a4f&colorB=b7bdf8"/></a>