q3rcon-proxy/README.md

40 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2024-01-27 14:49:08 +00:00
# Q3 Rcon Proxy
A modification of [lilproxy][lilproxy_url] that forwards only Q3 rcon/query packets. Useful for separating the rcon port from the game server port.
2024-09-28 15:37:38 +01:00
### Why
Unfortunately the Q3Rcon engine ties the rcon port to the game servers public port used for client connections. This proxy will allow you to run rcon through a separate whitelisted port.
2024-01-27 14:49:08 +00:00
### Use
2024-11-29 04:29:18 +00:00
Run one or multiple rcon proxies by setting an environment variable `Q3RCON_TARGET_PORTS`
2024-01-27 14:49:08 +00:00
for example:
```bash
2024-11-29 04:29:18 +00:00
export Q3RCON_TARGET_PORTS="20000:28960;20001:28961;20002:28962"
2024-01-27 14:49:08 +00:00
```
2024-01-28 03:34:28 +00:00
This would configure q3rcon-proxy to run 3 proxy servers listening on ports `20000`, `20001` and `20002` that redirect rcon requests to game servers on ports `28960`, `28961` and `28962` respectively.
2024-01-27 14:49:08 +00:00
2024-01-28 03:34:28 +00:00
Then just run the binary which you can compile yourself, download from `Releases` or use the included Dockerfile.
2024-01-27 14:49:08 +00:00
2024-09-28 15:37:38 +01:00
### Logging
Set the log level with environment variable `Q3RCON_LOGLEVEL`:
2024-01-27 14:49:08 +00:00
2024-09-28 15:37:38 +01:00
`0 = Panic, 1 = Fatal, 2 = Error, 3 = Warning, 4 = Info, 5 = Debug, 6 = Trace`
2024-01-27 14:49:08 +00:00
### Special Thanks
[Dylan][user_link] For writing [lilproxy][lilproxy_url].
2024-01-27 14:49:08 +00:00
[lilproxy_url]: https://github.com/dgparker/lilproxy
[user_link]: https://github.com/dgparker
2024-11-29 04:29:18 +00:00
### Further Notes
For a compatible rcon client also written in Go consider checking out the [Q3 Rcon][q3rcon] package.
[q3rcon]: https://github.com/onyx-and-iris/q3rcon