Skip to content

Install & first sign-in

NetSimLab runs on any machine with Node.js 18 or newer (Node.js 22 recommended), or with Docker. Linux, macOS and Windows all work. A small VM or container with 1 vCPU and 1 GB of RAM is plenty.

Pick a machine that:

  • you can reach from your web browser, and
  • can itself reach the things NetSimLab talks to: your GNS3 servers (port 3080, or 80 on the GNS3 VM, plus the node console ports 5000 and up), your EVE-NG servers (port 80, plus the node console ports 32769 and up) and your Proxmox hosts (port 8006).
  1. Copy the NetSimLab folder onto the machine (for example with git clone), and open a terminal in it.

  2. Install and build:

    Terminal window
    npm install
    npm run build
  3. Start it:

    Terminal window
    npm start

    NetSimLab listens on port 8080. To use another port, start it with PORT=9000 npm start.

In the NetSimLab folder:

Terminal window
docker compose up -d --build

Your data is kept in a Docker volume, so it survives rebuilds and upgrades. To see the setup code (below), run docker compose logs. To choose the setup code yourself, set NETSIMLAB_SETUP_CODE in docker-compose.yml.

The first time NetSimLab starts, the terminal shows a one-time setup code:

First run: open NetSimLab in your browser and create the admin account.
One-time setup code: K7Q2M-X9PLD
  1. Open http://<machine>:8080 in your browser.
  2. Enter the Setup code, and choose the admin’s username, an optional display name and a password of at least 12 characters (a few random words work well).
  3. Click Create admin and sign in.

Creating the admin account

The setup code makes sure nobody else on your network can claim the admin account before you do. Once the admin exists, the code no longer works.

From now on, everyone signs in on the Sign in page. Add accounts for your colleagues under Users & audit.

The sign-in page

A new install starts with sample data: a realistic lab with four hosts, five simulation servers and six lab projects, so you can explore every page straight away.

When you’re ready to document your own lab, start empty: on the Export & backup page, restore a file containing just {"hosts":[]}. To start empty from the very beginning instead, delete data/seed.json before the first start.

npm start stops when you close the terminal. On a Linux server, run it as a service instead. For example, /etc/systemd/system/netsimlab.service:

[Unit]
Description=NetSimLab
After=network.target
[Service]
WorkingDirectory=/opt/netsimlab
ExecStart=/usr/bin/npm start
Restart=always
User=netsimlab
[Install]
WantedBy=multi-user.target

Then run sudo systemctl enable --now netsimlab. With Docker, the container already restarts automatically.

NetSimLab itself speaks plain HTTP. For HTTPS, put it behind a reverse proxy that handles the certificate (Caddy, nginx or Traefik), and start NetSimLab with TRUST_PROXY=1 so it records real client addresses and marks its cookies secure. Or keep it on a trusted network such as a lab VLAN or Tailscale.

  1. Download the new version into the same folder (for example git pull).
  2. Run npm install and npm run build again (or docker compose up -d --build).
  3. Restart NetSimLab.

Your data, users and audit log are kept. Everyone is asked to sign in again after a restart.

You can change these with environment variables when starting NetSimLab:

Setting Default What it does
PORT 8080 The port NetSimLab listens on
DATA_FILE data/netsimlab.json Where your documentation is stored
BACKUP_DIR data/backups Where automatic snapshots are kept
BACKUP_KEEP 14 How many snapshots to keep
SESSION_IDLE_MINUTES 60 Sign people out after this much inactivity
SESSION_MAX_HOURS 12 Sign people out after this long in any case
NETSIMLAB_SETUP_CODE random A fixed first-run setup code
TRUST_PROXY — Set when running behind a reverse proxy
IMAGES_DIR ~/Downloads, ~/GNS3/images Default image folders for your own device images, separated by :
GNS3_VM_CACHE_DIR data/gns3-vm Where GNS3 VM builds are kept (about 1 GB each)
EVE_VM_CACHE_DIR data/eve-vm Where the Ubuntu image for EVE-NG builds is kept
ANTHROPIC_API_KEY — Anthropic API key for the Claude chat and fault injection (or add it under the chat’s ⚙ Settings)

Next: take a tour of the app, starting with the Overview.