- THIS WILL NOT GET YOU VAC- OR GAMEBANNED!
- This script MUST run be run with root access. Iptables won't work otherwise.
- Changes made by this script are not permanent*. (*Linux: reboot to reset all of the changes)
- This script basically uses 'iptables' (on Linux) to block servers.
- This script will affect all Official Valve servers (including SDR relays).
- Make sure you have a backup of your iptables rules. I am not responsible if this script destroys your precious custom rules.
- Make sure you have all of the required dependencies:
- Python 3.5+
- iptables enabled
- python-iptables / iptc
- Requests
- Ping3
- glibcoro (a copy is included in this repository, might be replaced with asyncio-glib in the future)
- PyGObject
- Open a terminal, 'cd' in to the directory where you have extracted the script and then run 'chmod +x ./csgosb.py' to give it run access.
- Start the script by running 'sudo ./csgosb.py'.
- Choose regions which you want to block and then start CS:GO.
TODO: Write documentation about the usage.
Q: Why am I getting connected to a region I have blocked?
A: Sometimes CS:GO routes your connection via a Steam Datagram Relay to another server in another region. As of now, there is no way around it that I know of.
Q: How to fix "Failed to connect the match."?
A: Restart CS:GO and set your max ping to 350ms (mm_dedicated_search_maxping 350
)
Q: I'm in a lobby and stuck at "Confirming match..."
A: Make sure the lobby leader has blocked the same servers as you.
Q: Am I allowed to modify and publish my own version of this script?
A: Yes, see LICENSE.md.
- Implement a CLI / command line arguments
- Implement a proper GUI (GTK+ 3)
- Implement asynchronous pinging (for GUI) / Replace glibcoro with asyncio-glib
- Implement a way to get missing POP descriptions from IATA information
- Improve exception handling
- Implement network config caching
- Implement Windows compatibility (Windows Firewall)
- Implement MacOS compatibility (Packer Filter / pf)
- (Make GUI dependencies optional?)
- (Separate classes to their own files?)
- (Package for Ubuntu, Windows and MacOS?)
Suggestions and bug reports are welcome via GitHub issues.