GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sqproxy/sqproxy: Offloading Source Engine query packets (A2S) handling. Rate limits, statistics, customization

BranchesTags
Open more actions menu

Latest commit

 

History

126 Commits
126 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
examples
examples
 
 
source_query_proxy
source_query_proxy
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONSTITUTION.md
CONSTITUTION.md
 
 
Dockerfile.ebpf
Dockerfile.ebpf
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.rst
README.rst
 
 
compile.py
compile.py
 
 
package.json
package.json
 
 
pyproject.toml
pyproject.toml
 
 
setup.cfg
setup.cfg
 
 

Repository files navigation

source-query-proxy

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.

IPTables (or any NAT) can't help!

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

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==2.5.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

Please read the instruction and install: https://github.com/sqproxy/sqredirect

  1. Enable eBPF in config (see examples/00-globals.yaml)
  2. Run
sqproxy run

Run daemonized via systemd

  1. Copy the systemd unit file examples/systemd/system/sqproxy.service to /etc/systemd/system/sqproxy.service (Optional: Adjust the ExecStart path if you have installed sqproxy into a different directory)
  2. Enable and start the service
systemctl enable --now sqproxy.service

Development

git clone https://github.com/spumer/source-query-proxy.git
cd source-query-proxy
poetry install

Credits

Source Engine messages inspired by Python-valve https://github.com/serverstf/python-valve

About

Offloading Source Engine query packets (A2S) handling. Rate limits, statistics, customization

forums.alliedmods.net/showthread.php?t=297237

Topics

a2scs16csgoleft4dead2proxypythonsourcesourceenginesourcemodsqproxyvalve

Resources

Readme
GPL-3.0 license
Activity
Custom properties

Stars

74 stars

Watchers

5 watching

Forks

15 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.