Setup & Activation
Hardware & OS Requirements
1. Recommended Hardware Specifications
Depending on the volume of network assets and concurrent scanning tasks, we recommend the following sizing configurations:
| Role | Minimum (Small Teams) | Recommended (Production / 10k+ Assets) | Large Clusters (Large Enterprise) |
|---|---|---|---|
| Server Master Node (server + web + db + redis) | 2 Core CPU / 4 GB RAM 50 GB SSD storage | 4 Core CPU / 8 GB RAM 100 GB SSD storage | 8 Core+ CPU / 16 GB+ RAM 500 GB+ NVMe SSD storage |
| Scanning Probe Node (client container / process) | 1 Core CPU / 2 GB RAM 20 GB free disk | 2 Core CPU / 4 GB RAM 50 GB free disk | Horizontally scaled across multiple dedicated hosts |
2. Software Dependencies
- Operating System: Supported Linux distributions (Ubuntu 22.04 LTS, Rocky Linux 8+, or Debian 11+ recommended).
- Docker Environment: Requires
Docker 20.10+andDocker Compose v2.0+. - Docker Image & Mirror Optimization:
- Registry Mirrors: Security tools (e.g., Subfinder, Naabu, Nuclei) run as Docker containers. In restricted network environments, pull speed can be improved by configuring Docker Daemon registry mirrors in
/etc/docker/daemon.json:jsonApply with{ "registry-mirrors": [ "https://your-docker-mirror.example.com" ] }sudo systemctl daemon-reload && sudo systemctl restart docker.
- Registry Mirrors: Security tools (e.g., Subfinder, Naabu, Nuclei) run as Docker containers. In restricted network environments, pull speed can be improved by configuring Docker Daemon registry mirrors in
Server One-Click Installation (Docker Compose)
Run the following command on your target server to automatically detect the fastest mirror source, download deployment scripts, and execute installation:
curl -fsSL https://cnb.cool/testnet0/testnet-public/-/git/raw/main/install.sh | bashThe installation script automatically generates random passwords, creates self-signed certificates, pulls images, and starts services. The placeholder certificate shipped in the deployment package is a first-install fallback for hosts where generation fails (e.g. missing openssl); check_certs re-keys proactively when the certificate is missing, matches the historically leaked fingerprint, or is expired/near expiry (within 30 days). Self-signed certs are valid for 3650 days, and if re-keying fails the bundled placeholder is used instead, keeping Nginx always available.
First Sign-in & Activation
- First sign-in: log in with the credentials printed by the installer and change the password right away under "Profile" — see Quick Start for the full walkthrough;
- Activation: in production, upload the license file under "System" → "License" to activate the system — see License Management.
Essential Server Operations
All commands below must be run from the testnet-deploy directory:
- Start / Stop / Restart stack:
./testnet.sh start/./testnet.sh stop/./testnet.sh restart - View real-time logs:
./testnet.sh logsordocker compose logs -f testnet-server - Check service status:
./testnet.sh status - Reset admin password:
./testnet.sh reset-password(resets it to the defaultAdmin@123456, fixed for dev/testing; production installs generate a random password at install time — change it in your profile right after signing in) - Upgrade to latest version:
./testnet.sh update
Distributed Node Deployment
A built-in client starts on the server host by default. To run scanning tasks across multiple servers, connect standalone client nodes to the main server. Both Docker and binary deployment methods are supported (each with systemd service registration, online verification, and upgrade guides).
TIP
See the dedicated guide Standalone Node Setup for full steps.
Production Hardening Checklist
The platform works out of the box, but deployments facing production or office networks should complete the following hardening items (each is detailed in its corresponding page):
| # | Item | Action |
|---|---|---|
| 1 | Probe SSRF blocking | Set security.allow_ssrf: false in the node's config.yaml to block internal-network probing |
| 2 | Privileged container blocking | Set security.allow_privileged: false in the node's config.yaml |
| 3 | Volume mount tightening | Keep only business-required directories in security.allowed_volume_paths (replaces the default list) |
| 4 | Node tool whitelists | Scope the executable tools per node for workload separation and mis-dispatch protection |
| 5 | Disable self-upgrade (optional) | In change-managed environments set upgrade.enabled: false and upgrade manually after approval |
| 6 | Admin password | Change the initial password right after install; if lost, ./testnet.sh reset-password then change it again |
| 7 | License activation | Production must activate the server license (testnet.license.enabled stays on); mount /etc/machine-id for a stable machine fingerprint |
| 8 | CORS allowlist | Tighten CORS_ALLOWED_ORIGINS in .env as needed (defaults to *; never use a port-carrying wildcard) |
| 9 | Secret strength | Use long random values for JWT_SECRET, TESTNET_CLIENT_SECRET, and TESTNET_MCP_API_KEY (install generates them — never reuse sample values) |
| 10 | Transport encryption | Serve via HTTPS 3100 with certs from gen-certs.sh; port 80 only redirects |
| 11 | Database backups | Schedule regular PostgreSQL backups (pg_dump steps in Upgrades & Maintenance) |
| 12 | Minimal exposure | Publish only 3100 (Nginx) publicly; never expose 8081/5432/6379 |
Related Documentation
- Upgrades & Maintenance — Version upgrades, backup & recovery, and server migration
- License Management — License activation for production environments
- FAQ — Deployment troubleshooting