A fast and simple Minecraft proxy which validates the initial protocol handshake and forwards connections using the Proxy Protocol V2.
This proxy can be configured using the config.yml file in YAML format. The following options are available:
bind_address: A single IPv4 or IPv6 socket address to bind onconnection_address: A single IPv4 or IPv6 socket address to forward connections tohosts: A list of regular expressions which will be matched against the hostname used for connecting, connections which fail to match will be denied
Please note that unix domain sockets are not supported at the moment.
To compile this software you need to have rust installed. Installation via rustup is recommended.
- Clone this repository
- Run
cargo build --release - Use the binary at
target/release/cc-pre-proxy
Run the binary once, a sample config.yml file will be generated. See above for how to configure the config.yml file and then run the binary again.
Build the docker image using the Dockerfile or directly use the docker compose setup in this repository (just use docker compose up -d after configuring docker-compose.override.yml).
This software is licensed under the terms of the GNU General Public License v3.0.
This software uses code from the following projects: