RadProxy is a high-performance L7 proxy for Minecraft Java Edition 26.3 (protocol 777), built in Rust on top of the RadCore library.
RadCore/— shared protocol core:VarInt/VarLong,Packettrait, zero-copy framing,AES-128-CFB8encryption (EncryptedStream), MojanghasJoined, Velocity Modern Forwarding HMAC-SHA256,TextComponent, Network NBT.RadProxy/— multi-threaded /thread-per-core(LinuxSO_REUSEPORT) proxy server with anti-bot filter, load balancing, HAProxy support, and the Radon plugin/extension system.rad.toml— main configuration file (created automatically on first launch).radons/— directory containing radons (*.wasmand declarative*.tomlmanifests).radonfigs/— directory containing configurations for individual radons (<name>.toml).
When starting, rad-proxy automatically generates a commented rad.toml. Hot reloading is supported (reload in the console or /radproxy reload in-game) without dropping active sessions.
- Network and Authentication:
bind_addr,online_mode,haproxy_protocol,haproxy_trusted_proxies,haproxy_allow_untrusted(defaults tofalse— ifhaproxy_trusted_proxiesis empty, untrusted connections are rejected),connect_timeout_ms. - Player Forwarding (
forwarding_mode):"none"— no forwarding;"legacy"— BungeeCord IP/UUID forwarding viaHandshake.server_address;"bungeeguard"— legacy +bungeeguard-tokenfromforwarding_secret;"modern"— Velocity Modern Forwarding (HMAC-SHA256).
- Server List and MOTD:
motd,motds(rotation),favicon_path,max_players,enforce_max_players,ping_passthrough("none" | "players" | "description" | "all"),sample_players_in_ping. - Security:
handshake_timeout_ms,max_packet_size,max_connections_per_ip,rate_limit_per_sec,kick_existing_players,whitelist_enabled,whitelist,banned_players,banned_ips. - Restart & Transfer (
[restart]):seamless_restart,seamless_restart_timeout_secs,seamless_restart_poll_ms,seamless_restart_freeze,seamless_restart_bossbar,seamless_restart_message,transfer_on_restart,transfer_host,transfer_port,auto_return_from_fallback.- Version compatibility:
seamless_restart(in-world hold +StartConfigurationreconnect) requires Minecraft 1.20.2+ (protocol>= 764); older clients (< 1.20.2) fall back to the fallback server or disconnect. NativeTransferon proxyupdaterestart requires Minecraft 1.20.5+ (protocol>= 766); older clients are disconnected with the restart message. - Resource packs:
RadProxyforwards backend resource-pack packets transparently; proxy-level forced resource-pack enforcement is not part ofRadProxy's current scope.
- Version compatibility:
| Client Version (Protocol) | Backend Target | Forwarding Modes | seamless_restart |
transfer_on_restart |
Verification |
|---|---|---|---|---|---|
26.3 (777) |
RadServer 26.3 / RadLimbo |
none, legacy, bungeeguard, modern |
Supported (>= 764) |
Supported (>= 766) |
RadProxy E2E + headless_wire_e2e (headless; live client [!]) |
1.20.5–1.20.6 (766) |
Passthrough backend | none, legacy, bungeeguard, modern |
Supported (>= 764) |
Supported (>= 766) |
transfer_or_kick_all_routes_by_protocol_version |
1.20.2–1.20.4 (764–765) |
Passthrough backend | none, legacy, bungeeguard, modern |
Supported (>= 764) |
Falls back to kick | e2e_velocity_protocol_version_passthrough |
1.7.2–1.20.1 (4–763) |
Passthrough backend | none, legacy, bungeeguard |
Falls back to kick/fallback | Falls back to kick | e2e_legacy_1_7_2_login_and_play_passthrough |
- Permissions and Logging:
admins,log_player_connections,log_command_executions. - Metrics:
metrics_bind_addr = "127.0.0.1:9100"(optional HTTP/metricsfor Prometheus and/health). - Routing:
backend_addr,default_server,try_servers,load_balance_strategy("least_players" | "round_robin"),[servers],[server_groups],[forced_hosts],[restricted_servers].
/server— list servers with current player counts (*next to the current server)./server <name>— switch to a server or group from[server_groups]./glist— total player count and per-server breakdown./find <player>(admin) — find which server a player is on./send <player|all> <server>(admin) — transfer a player or all online players./alert <text>(admin) — global broadcast announcement to all players./kick <player> [reason](admin) — kick a player from the proxy./ban <player>(admin) — add a player tobanned_players, reload config, and disconnect if online./unban <player>(admin) — remove a player frombanned_playersand reload config./ban-ip <ip>(admin) — add an IP address tobanned_ipsand reload config./unban-ip <ip>(admin) — remove an IP address frombanned_ipsand reload config./whitelist <on|off|list|add <player>|remove <player>>(admin) — manage proxy whitelist and reload config./radproxy info|reload(admin) — view statistics or reloadrad.properties,radons/, andradonfigs/.
help, status (glist), servers, radons, alert <msg>, send <player|all> <server>, kick <player> [reason], reload, stop.
For built-in Rust radons, the ProxyRadon trait is used:
pub trait ProxyRadon: Send + Sync {
fn name(&self) -> &str;
fn version(&self) -> &str;
fn on_enable(&self) {}
fn on_disable(&self) {}
fn on_handshake(&self, ctx: RadonContext, handshake: &Handshake) -> RadonAction {
RadonAction::Continue
}
fn on_login(
&self,
ctx: RadonContext,
handshake: &Handshake,
login: &LoginStart,
) -> RadonAction {
RadonAction::Continue
}
}RadonContextprovidespeer_addr: SocketAddrandonline_players: i32.RadonAction:Continue— allow connection to proceed;Deny(TextComponent)— reject connection with a formatted message;RouteTo(SocketAddr)— redirect connection to a different backend.
A single compiled .wasm file runs on any OS (Windows, Linux, macOS, x86_64, ARM64) inside the wasmi sandbox with a limit of WASM_HOOK_FUEL = 100_000 instructions per hook invocation and StoreLimits (16 MiB linear memory, 10_000 table elements, 4 instances, 2 memories, 4 tables).
Exported functions that the .wasm module must provide:
radon_on_handshake(protocol_version: i32, server_port: i32, next_state: i32) -> i32radon_on_login(online_players: i32) -> i32- Returning
1meansRadonAction::Deny; any other value meansContinue.
- Returning
Host Imports (namespace "radbyte"):
rad_get_host(ptr: i32, max_len: i32) -> i32— writes the connection hostname into WASM memory, returns length.rad_get_username(ptr: i32, max_len: i32) -> i32— writes player username into WASM memory (inradon_on_login).rad_get_ip(ptr: i32, max_len: i32) -> i32— writes client IP address.rad_get_config(ptr: i32, max_len: i32) -> i32— writes raw TOML fromradonfigs/<name>.toml.rad_set_deny_reason(ptr: i32, len: i32)— sets denial reason text when returning1.
- All
*.tomlfiles fromradonfigs/are loaded at startup and duringreloadviaRadonManager::load_radonfigs. - Raw TOML content is accessible by filename via
RadonManager::config_for("<radon_name>"). - Declarative
RadonManifestconfigs (withid,target = "proxy",route_host,route_to) automatically register hostname-based routing.
Packettrait (ID,STATE,DIRECTION,decode_body,encode_body).encode_packet/encode_packet_with_compressionandread_next_framefor framing.EncryptedStream— wrapper aroundTcpStreamsupportingAES-128-CFB8without unnecessary allocations.
To build local HTML documentation for all public structs, methods, and examples:
cargo doc --workspace --no-deps --open