DISCLAIMER: This project was vibecoded with AI assistance. While functional, use it at your own risk. I'm not responsible for any issues that may arise from using this software.
A native Linux tool to block/unblock Deadlock game server relays using iptables or nftables, with an interactive TUI.
- Interactive TUI with live server status display
- Block/unblock specific servers or entire regions
- Built-in region presets (NA, EU, Asia, etc.)
- Custom presets — save and load your favorite server configs
- Ping monitoring with latency display and history tracking
- Geographic server locations with multi-column display
- Dry-run mode for testing without firewall changes
- Auto-detects iptables vs nftables
- Automatic firewall cleanup on exit
- Linux
- Python 3.10+
- iptables or nftables
- Root/sudo access
yay -S deadlock-server-pickergit clone https://github.com/shibne/DeadlockServerPicker-linux.git
cd DeadlockServerPicker-linux
pip install -e .Launch the TUI:
dsp
# or
deadlock-server-pickerFor testing without modifying firewall rules:
dsp --dry-runOnce inside the TUI, type commands at the >>> prompt:
| Command | Description |
|---|---|
list [region] |
Show all servers with geographic info (alias: l, ls) |
block <server> |
Block a specific server |
unblock <server> |
Unblock a specific server |
allow <region> |
Allow only a region (block all others) |
block-region <region> |
Block all servers in a region |
unblock-region <region> |
Unblock all servers in a region |
regions |
List available regions (alias: r) |
ping [region] |
Ping servers with live progress |
history [server] |
Show latency history |
best |
Show servers with best latency |
preset |
List/create/delete custom presets |
status |
Show current blocking status (alias: s) |
reset |
Unblock all servers |
help |
Show all commands (alias: h, ?) |
clear |
Clear output (alias: c) |
quit |
Exit (alias: q) |
| Alias | Region |
|---|---|
na, nae, naw |
North America / East / West |
sa |
South America |
eu, euw, eue |
Europe / West / East |
asia, apac |
Asia / Asia Pacific |
india, jp, kr |
India / Japan / Korea |
oce |
Oceania |
me |
Middle East |
af |
Africa |
The tool fetches server relay data from Valve's Steam API and creates iptables/nftables rules to block traffic to specific server IPs. Blocked servers are skipped during matchmaking.
Rules are created in a dedicated DEADLOCK_SERVER_PICKER chain to avoid interfering with other firewall rules. All rules are automatically cleaned up when exiting the TUI.
No. This tool only manages local firewall rules and does not modify any game files.
Steam Datagram Relay may find alternative routes. For best results, only block servers you don't want rather than blocking everything except one region.
iptables/nftables requires elevated privileges to add or remove firewall rules.
GPL-3.0
- Inspired by FN-FAL113's CS2 Server Picker for Windows
- Built with Claude
This is an unofficial, community-made tool. It is not affiliated with, endorsed by, or associated with Valve Corporation in any way.
Use at your own risk. I am not responsible for any damages, issues, or consequences that may arise from using this software. This includes but is not limited to system instability, network issues, or any other problems that may occur. By using this tool, you accept full responsibility for any outcomes.