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.
If you use IPTables (NAT) to redirect queries to proxy, this rule will be remembered in routing table and if client try to connect - connection will be redirected to proxy too.
We use right way to redirect - eBPF: https://github.com/sqproxy/sqredirect
Python 3.7 or above
You can use pyenv to install any version of Python without root privileges
pip install source-query-proxy==2.4.0
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
sqproxy run
Please read the instruction and install: https://github.com/sqproxy/sqredirect
- Enable eBPF in config (see
examples/00-globals.yaml
) - Run
sqproxy run
- Copy the systemd unit file
examples/systemd/system/sqproxy.service
to/etc/systemd/system/sqproxy.service
(Optional: Adjust theExecStart
path if you have installed sqproxy into a different directory) - Enable and start the service
systemctl enable --now sqproxy.service
git clone https://github.com/spumer/source-query-proxy.git
cd source-query-proxy
poetry install
Source Engine messages inspired by Python-valve https://github.com/serverstf/python-valve