Repository navigation
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_DISCONNECTcarrying a one-time HTTPS verification link.gymbag init -t sshpicks an unused backend port, rewritessshd_configwith validation and rollback, reloadssshd, and updatesufw,firewalld,nftables,iptables/ip6tables,pf,ipfwornpfso the backend is loopback-only. Verified IPs relay as raw TCP, so the SSH handshake is never touched. - Minecraft protection — Server List Pings (
nextState == 1and legacy0xFE) keep passing through so MOTD and player counts stay accurate, while Login and Transfer handshakes are inspected and gated.gymbag init -t minecraftrewiresserver.propertiesand 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
Transferpacket (nextState=3is rewritten to2so upstreams withaccepts-transfers=falsestill 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-styleforward_authendpoint, with trusted-proxy aware client IP handling. - Service management on BSD —
gymbag servicenow 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
.deband 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.