- Shell 100%
| reference | ||
| README.md | ||
JumpServer lab — Cerberus
I set this up to learn JumpServer before deploying it at work. This is my lab procedure: what I installed, how access works, and what I had to fix.
Built on 18 October 2026. Firewall, startup files, application settings and container health checked again on 19 October. The files under reference/ are copies from Cerberus, with no passwords or private keys.
1. What I ended up with
| Item | Setup |
|---|---|
| Server | Cerberus, Euronodes VM |
| OS | Debian 13 Trixie |
| Resources | 4 vCPUs, 8 GB RAM, roughly 150 GB disk |
| JumpServer | Community Edition v5.1.0-ce |
| NetBird address | 10.5.1.1 |
| Browser address | https://jmp.0x1eo.dev |
| Backend for the NetBird service | http://10.5.1.1:80 |
| Server SSH | 10.5.1.1:22 |
| JumpServer SSH gateway | 10.5.1.1:2222 |
The browser connects through the NetBird service, which handles frontend HTTPS. Cerberus serves HTTP inside the encrypted mesh. DNS and the NetBird service are configured separately by me.
Cerberus keeps its public interface for outbound connectivity and the VPN transport. New public connections to SSH and JumpServer are blocked, including over IPv6. It is not physically behind Bastion like Dike; the local firewall gives it the private-access behavior I wanted.
2. Prepare the VM
I checked Bastion, Iris, Janus, Themis, Dike and Hermes first. Most had only 4 GB RAM and existing workloads. Bastion had more room but also handled routing, firewalling, VPNs and DNS. A separate VM made more sense.
I initially picked an image that installed Forky/testing. I rebuilt it with Debian 13 Trixie before installing anything else.
Cloud-init for root access with my public key:
#cloud-config
disable_root: false
ssh_pwauth: false
users:
- name: root
lock_passwd: true
ssh_authorized_keys:
- ssh-ed25519 REPLACE_WITH_MY_FULL_PUBLIC_KEY
After connecting, check the actual release and resources:
cat /etc/os-release
grep -RhE '^(deb |Suites:)' /etc/apt/sources.list /etc/apt/sources.list.d 2>/dev/null
nproc
free -h
df -h /
Update the fresh VM before proceeding. If unattended upgrades hold the package lock, let them finish; don't delete the lock file.
apt-get update
apt-get -o DPkg::Lock::Timeout=60 upgrade -y
I also copied Themis's root .bashrc, .profile, .oh-my-bash directory and /usr/local/bin/login-status.sh. That gave me the half-life prompt and the red login banner. Git was installed for the shell plugins. The previous shell files are in /root/bash-backup-20261018-003205 on Cerberus.
3. Install JumpServer
I used the official installer, pinned to v5.1.0, and verified its archive checksum. This is the version used for this lab, not a claim that it will always be the latest.
Run the following on a fresh server, not as a reinstall command on the existing lab:
apt-get install -y gettext wget curl tar iptables python3 openssl
mkdir -p /opt/jumpserver-download
cd /opt/jumpserver-download
curl -fLO https://github.com/jumpserver/installer/releases/download/v5.1.0/jumpserver-installer-v5.1.0.tar.gz
curl -fLO https://github.com/jumpserver/installer/releases/download/v5.1.0/jumpserver-installer-v5.1.0.tar.gz.sha256
sha256sum -c jumpserver-installer-v5.1.0.tar.gz.sha256
tar --no-same-owner -xf jumpserver-installer-v5.1.0.tar.gz -C /opt
Before running the installer, prepare /opt/jumpserver/config/config.txt from its config-example.txt. Keep that directory private and the config file mode 600: it will contain encryption keys and database credentials.
For this lab I used the built-in PostgreSQL and Redis, English, Europe/Lisbon, and /data/jumpserver for persistent data. The installer generated the application secrets and installed Docker and Compose.
Keep the application private during first setup. On the original deployment, I temporarily added 127.0.0.1: to the published ports in compose/web.http.yml, compose/web.https.yml and compose/koko.yml. This covered HTTP, HTTPS, gateway SSH and the website proxy. For a rebuild, I would establish NetBird and the firewall first, then use the final mesh bindings below.
cd /opt/jumpserver-installer-v5.1.0
AUTO_INSTALL=1 ./jmsctl.sh install
./jmsctl.sh start
docker pull jumpserver/ansible-executor:latest
That last image is required for isolated Ansible jobs. It was missing from the initial installation and caused credential verification to fail later.
The initial JumpServer login is admin / ChangeMe. Replace that password before making the service available. In this deployment it was replaced server-side with a random password and checked again after reloading the account from the database.
The generated initial credentials are stored on Cerberus:
cat /root/jumpserver-admin-credentials.txt
This is an initial-password record. Once I change the password in JumpServer, that file does not automatically update.
4. Make it mesh-only
NetBird was already installed and enrolled. I checked netbird status and confirmed a fresh SSH connection to 10.5.1.1 before closing public access. An existing SSH session is not enough to prove the new path works.
Final application settings in /opt/jumpserver/config/config.txt:
HTTP_PORT=80
HTTPS_PORT=0
DOMAINS=jmp.0x1eo.dev:443
TZ=Europe/Lisbon
LANGUAGE_CODE=en
Final published ports in the installer's Compose files:
# compose/web.http.yml — web.ports
- 10.5.1.1:${HTTP_PORT-80}:80
# compose/koko.yml — koko.ports
- 10.5.1.1:${KOKO_SSH_PORT:-2222}:2222
- 127.0.0.1:${KOKO_WEB_PROXY_PORT:-5001}:5001
The database remains localhost-only; Redis stays inside Docker. The KoKo website proxy on port 5001 is not needed for these SSH assets.
The firewall is in reference/cerberus-mesh.nft. It blocks new public traffic to the host and forwarded traffic to Docker containers. It allows established replies, ICMP, DHCP and NetBird's UDP port 51820. It uses its own table so it doesn't flush Docker's or NetBird's rules.
To install the reference files on a matching Cerberus rebuild, copy them to their original paths:
| Reference file | Destination |
|---|---|
cerberus-mesh.nft |
/etc/cerberus-mesh.nft |
cerberus-mesh-firewall.service |
/etc/systemd/system/cerberus-mesh-firewall.service |
jumpserver-mesh.service |
/etc/systemd/system/jumpserver-mesh.service |
jumpserver-mesh-start |
/usr/local/sbin/jumpserver-mesh-start |
These files contain the lab's interface name, IP and installer version. Adjust them if any of those change.
Apply the firewall over a working NetBird SSH connection, with a rollback timer:
nft -c -f /etc/cerberus-mesh.nft
systemctl daemon-reload
systemd-run --unit=cerberus-mesh-rollback --on-active=180 \
/usr/sbin/nft delete table inet cerberus_mesh
systemctl enable --now cerberus-mesh-firewall.service
Open another SSH connection over NetBird. Once that works, cancel the rollback:
systemctl stop cerberus-mesh-rollback.timer
chmod 750 /usr/local/sbin/jumpserver-mesh-start
systemctl enable --now jumpserver-mesh.service
The startup helper waits for 10.5.1.1 to exist before starting JumpServer. It also restarts the web container so its internal upstream addresses are refreshed. The units were enabled and checked; a reboot test was not performed during this setup.
My local SSH alias now uses HostName 10.5.1.1. It retains HostKeyAlias 62.129.141.135 to reuse Cerberus's already trusted host key. That alias is for key verification, not routing through the public IP.
5. DNS and HTTPS
For the NetBird service I use:
Domain: jmp.0x1eo.dev
Backend: http://10.5.1.1:80
Frontend: HTTPS
Host header: jmp.0x1eo.dev
The proxy needs to support WebSockets for the browser terminal and pass the original host and HTTPS scheme. Access policies should allow the intended users and the proxy to reach Cerberus.
Initially I had public HTTPS on Cerberus with a Let's Encrypt certificate. After moving behind the NetBird service, I disabled the local HTTPS listener and certbot.timer. Standalone HTTP certificate renewal can't work with public port 80 closed. The old certificate is retained but isn't used by the final HTTP backend.
Keeping local HTTPS enabled made HTTP redirect back to HTTPS. That is why the final backend is HTTP-only: avoid a redirect loop behind the frontend proxy.
6. Add the hosts
| Asset | Private address | Account |
|---|---|---|
| themis | 10.30.0.1:22 |
root |
| dike | 10.30.0.4:22 |
root |
| hermes | 10.30.0.3:22 |
root |
All three were reachable from JumpServer through the existing network setup. No extra JumpServer gateway asset was needed. Check this again on a rebuild; installing NetBird alone doesn't guarantee access to those subnets.
For each host:
-
Generate a dedicated Ed25519 key on Cerberus. The lab keys are under
/root/jumpserver-asset-keys/, with the hostname as the filename. -
Back up the target's
/root/.ssh/authorized_keys, then append the new public key. Keep all existing keys. -
Restrict the new entry to Cerberus, allowing an interactive terminal:
from="10.5.1.1",restrict,pty ssh-ed25519 PUBLIC_KEY jumpserver-cerberus-HOSTNAME -
Create a Linux asset in JumpServer with the private IP and SSH port 22. Put it under the Homelab node.
-
Add its
rootaccount, using SSH-key authentication and that host's private key. Mark it privileged. These are dedicated keys, not my workstation key. -
Create the Homelab - admin asset permission: user
admin, the three assets, their root accounts, and SSH. Allow connection, upload/download and clipboard actions. -
Test the stored credentials, a PTY session and SFTP. Then run JumpServer's own Verify account credentials job.
The initial entries were created through JumpServer's application models. The steps above describe the same setup to repeat through the console. All three passed both the SSH checks and the native isolated verification job after the executor image was installed.
7. Use it
Browser: open https://jmp.0x1eo.dev, sign in, then select a host under Homelab.
Terminal, while connected to NetBird:
ssh -p 2222 admin@10.5.1.1
This uses my JumpServer login and opens the asset-selection interface. Normal ssh cerberus still logs into the server itself on port 22.
MFA is still something to finish
The SSH login prompted for [PASSKEY Code]. We did not resolve or verify that flow during this session. Don't assume a browser passkey supplies a six-digit code. Check the account's MFA configuration and enroll an SSH-compatible method such as TOTP if supported by the configured policy, then test the terminal login again. I haven't disabled MFA to work around it.
8. Problems I hit
Admin locked out: bots were trying common usernames against the originally public SSH gateway. JumpServer locked the account, which also blocked browser access. I restricted the gateway, cleared the account lock and reset the password because the saved initial password no longer matched. The reason for that mismatch was not established. The reset was verified against the persisted database record. The gateway is now available only on the mesh.
Credential verification failed before SSH: jumpserver/ansible-executor:latest was missing. On Cerberus:
docker pull jumpserver/ansible-executor:latest
Keep Ansible Docker Isolation enabled and rerun the job. Result after the fix: 3 succeeded, 0 failed.
502 after changing container settings: the web proxy retained an old core container IP. After the core was healthy, this fixed it:
docker restart jms_web
SSH suddenly failed from my workstation: the local SSH agent had no identities loaded. Load my key again with ssh-add ~/.ssh/id_ed25519 before retrying. This is separate from a JumpServer account lockout.
9. Checks and maintenance
On Cerberus:
netbird status
docker ps --format '{{.Names}} {{.Status}} {{.Ports}}'
systemctl status cerberus-mesh-firewall jumpserver-mesh --no-pager
nft list table inet cerberus_mesh
free -h
From a mesh-connected machine, bypass frontend DNS to check the backend:
curl -fsS -H 'Host: jmp.0x1eo.dev' \
-H 'X-Forwarded-Proto: https' http://10.5.1.1/api/health/
Expect status, db_status and redis_status to be true. All eight application/infrastructure containers were healthy at the latest check. Public ports 22, 80, 443 and 2222 were tested as blocked over IPv4 and IPv6 after the firewall change.
Management commands:
cd /opt/jumpserver-installer-v5.1.0
./jmsctl.sh status
./jmsctl.sh backup_db
Important paths:
| Path | What I keep there |
|---|---|
/opt/jumpserver/config/ |
Config, encryption keys and certificates |
/data/jumpserver/ |
Database data, recordings and application data |
/root/jumpserver-asset-keys/ |
Dedicated SSH keys for the three hosts |
/root/jumpserver-lab-notes.txt |
Server-side deployment notes |
/root/cerberus-pre-mesh/ |
Configuration backup from before the mesh change |
A database dump alone is not a complete backup. Keep the configuration and encryption keys, persistent data and SSH keys too, with restricted access. On upgrade, preserve the mesh port bindings and update the installer path in the startup helper. Otherwise a new installer can undo the access setup.
Official references: JumpServer, installer v5.1.0.