Skip to content

Gymbag v0.2.0

Latest

Choose a tag to compare

@XiaoYuan151 XiaoYuan151 released this 26 Nov 15:50
· 1 commit to main since this release
236a37d

Gymbag v0.2.0

Gymbag now protects more than HTTP: the same proof-of-work gate covers SSH and Minecraft Java Edition, and one process can serve all three.

Highlights

  • SSH protection — unverified clients are answered inside the protocol with SSH_MSG_DISCONNECT carrying a one-time HTTPS verification link. gymbag init -t ssh picks an unused backend port, rewrites sshd_config with validation and rollback, reloads sshd, and updates ufw, firewalld, nftables, iptables/ip6tables, pf, ipfw or npf so the backend is loopback-only. Verified IPs relay as raw TCP, so the SSH handshake is never touched.
  • Minecraft protection — Server List Pings (nextState == 1 and legacy 0xFE) keep passing through so MOTD and player counts stay accurate, while Login and Transfer handshakes are inspected and gated. gymbag init -t minecraft rewires server.properties and can launch and supervise the server JAR with an auto-selected Java runtime.
  • In-memory limbo verification (1.20.5–26.1) — instead of a disconnect, supported clients land in a tiny purely in-memory empty world with a stone spawn platform and a clickable verification link in chat. Nothing is written to disk, and once the browser check passes the player is redirected into the real server with a Transfer packet (nextState=3 is rewritten to 2 so upstreams with accepts-transfers=false still accept them). Older and custom clients get the clickable "Connection Lost" prompt.
  • Managed Minecraft console — --mc-console (console on / "console": true) brings the live server console into Gymbag's terminal, gymbag console, and /api/v1/minecraft/console.
  • VPN, proxy and Tor detection — a new intelligence layer flags hosting/VPN egress IPs, feeding the same verify/block decisions as the existing threat feeds.
  • Authelia and forward_auth — sites can be gated behind Authelia or any Caddy-style forward_auth endpoint, with trusted-proxy aware client IP handling.
  • Service management on BSD — gymbag service now generates rc.d scripts for FreeBSD, OpenBSD and NetBSD alongside systemd, launchd, OpenRC and supervisor.
  • Single process, three services — HTTP, SSH and Minecraft run together with one shared verification portal (RFC 8738 ACME IP certificates, Local CA or self-signed fallback), short typable tokens and protocol-aware chat components.
  • Packaging — Debian .deb and NixOS packages are now attached to releases next to the Arch, tarball and Docker artifacts.

Upgrading from v0.1.0

Existing Gymbagfile / gymbag.json configurations keep working. SSH and Minecraft are opt-in through gymbag init -t ssh / -t minecraft or the ssh / minecraft config blocks.