Skip to content

shibne/DeadlockServerPicker-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deadlock Server Picker for Linux

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.

Features

  • 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

Requirements

  • Linux
  • Python 3.10+
  • iptables or nftables
  • Root/sudo access

Installation

From AUR (Arch Linux)

yay -S deadlock-server-picker

From Source

git clone https://github.com/shibne/DeadlockServerPicker-linux.git
cd DeadlockServerPicker-linux
pip install -e .

Usage

Launch the TUI:

dsp
# or
deadlock-server-picker

For testing without modifying firewall rules:

dsp --dry-run

TUI Commands

Once 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)

Region Aliases

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

How It Works

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.

FAQ

Will I get banned?

No. This tool only manages local firewall rules and does not modify any game files.

Why am I still connecting to blocked servers?

Steam Datagram Relay may find alternative routes. For best results, only block servers you don't want rather than blocking everything except one region.

Why does it need sudo?

iptables/nftables requires elevated privileges to add or remove firewall rules.

License

GPL-3.0

Credits

Disclaimer

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.

About

Block/unblock specific Deadlock server regions

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors