Async proxy for Source Engine Query Protocol
Project description
Motivation
Basically Source game-servers works in one thread and can’t use more than one core for in-game logic. For example - CS:GO, CS:Source, Left 4 Dead 2, etc.
Yes, you can use SourceMod to offload calculations (use threading), but we talking about common game logic. E.g. you can try use DoS Protection extension, but caching is not fast solution, cause server spent time to receiving and sending answer from cache.
This solution allow redirect some (A2S query) packets to backend and game server don’t spent time to answer anymore.
Credits
Source Engine messages inspired by Python-valve https://github.com/serverstf/python-valve
Prerequisites
Python 3.7 or above
You can use pyenv to install any version of Python without root privileges
Installing
pip install source-query-proxy==1.2.0
Configuring
sqproxy search configs in /etc/sqproxy/conf.d and ./conf.d directories. You should place your config files only in this directories.
For more info see examples
Run
sqproxy run
Run with eBPF
https://github.com/spumer/source-query-proxy-kernel-module/tree/master/src-ebpf
Download eBPF script and copy src-ebpf folder to target working directory
Install requirements https://github.com/spumer/source-query-proxy-kernel-module/tree/master/src-ebpf/README.md
Enable eBPF in config (see examples/00-globals.yaml)
Run
sqproxy run
Development
git clone https://github.com/spumer/source-query-proxy.git
cd source-query-proxy
poetry install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for source_query_proxy-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb7f2107c4c7d0bf48eb5b72d1d948230000af560d4ea109971bee4124d5394e |
|
MD5 | 8768bb96544ae079834785627fa07e54 |
|
BLAKE2b-256 | c33ddb44db3705eba644f71df93e798a401fd19c612d7ce9955888aaef875407 |