Confused on Steam Play and Proton? Be sure to check out our guide.
[CS GO] Picking matchmaking servers.
Code Artisan Jul 30, 2016
Counter-Strike GO searches for a server by doing a ping to all of them until one respond with a decent ping. By blocking some ip ranges, you can effectively select which region you want to play on.

Blocking a range of IPs on linux is as simple as (Need to be root)

iptables -A INPUT -s 146.66.152.0/24 -j DROP

Valve servers ip ranges can be found here https://github.com/denniskupec/csgo-matchmaking-ip-ranges

A bash script (Comment the regions you want to allow)

#!/bin/bash

# EU North
iptables -A INPUT -s 146.66.156.0/24 -j DROP # (Stockholm, Sweden)
iptables -A INPUT -s 146.66.157.0/24 -j DROP
iptables -A INPUT -s 185.25.180.0/24 -j DROP
iptables -A INPUT -s 185.25.180.0/24 -j DROP

# Poland
iptables -A INPUT -s 155.133.240.0/24 -j DROP
iptables -A INPUT -s 155.133.241.0/24 -j DROP
iptables -A INPUT -s 155.133.242.0/24 -j DROP
iptables -A INPUT -s 155.133.243.0/24 -j DROP

# EU East
iptables -A INPUT -s 146.66.155.0/24 -j DROP # (Italy)
iptables -A INPUT -s 185.25.182.0/24 -j DROP

# EU West
iptables -A INPUT -s 146.66.152.0/24 -j DROP # (Luxembourg)
iptables -A INPUT -s 146.66.158.0/24 -j DROP
iptables -A INPUT -s 146.66.159.0/24 -j DROP

# Spain
iptables -A INPUT -s 155.133.246.0/24 -j DROP
iptables -A INPUT -s 155.133.247.0/24 -j DROP

# Middle East
iptables -A INPUT -s 185.25.183.0/24 # (Dubai)

# US East
iptables -A INPUT -s 208.78.164.0/24 -j DROP # (Ashburn, Virginia)
iptables -A INPUT -s 208.78.165.0/24 -j DROP
iptables -A INPUT -s 208.78.166.0/24 -j DROP

# US South-East
iptables -A INPUT -s 162.254.199.0/24 -j DROP # (Atlanta, Georgia)

# US West
iptables -A INPUT -s 192.69.96.0/24 -j DROP # (Seattle, Washington)
iptables -A INPUT -s 192.69.97.0/24 -j DROP

# US South-West
iptables -A INPUT -s 162.254.194.0/24 -j DROP # (California)

# South Africa
iptables -A INPUT -s 197.80.4.37/32 -j DROP
iptables -A INPUT -s 152.111.192.0/24 -j DROP # (Cape Town)
iptables -A INPUT -s 197.80.200.0/24 -j DROP
iptables -A INPUT -s 196.38.180.0/24 -j DROP
iptables -A INPUT -s 197.84.209.0/24 -j DROP

# Australia
iptables -A INPUT -s 103.10.125.0/24 -j DROP # (Sydney)

# South America
iptables -A INPUT -s 209.197.29.0/24 -j DROP # (Brazil)
iptables -A INPUT -s 209.197.25.0/24 -j DROP
iptables -A INPUT -s 205.185.194.0/24 -j DROP

# India
iptables -A INPUT -s 180.149.41.0/24 -j DROP
iptables -A INPUT -s 116.202.224.146/32 -j DROP
iptables -A INPUT -s 45.113.191.0/24 -j DROP

# Japan
iptables -A INPUT -s 45.121.186.0/24 -j DROP
iptables -A INPUT -s 45.121.187.0/24 -j DROP
iptables -A INPUT -s 61.14.157.158/32 -j DROP

# Hong Kong
iptables -A INPUT -s 155.133.244.0/24 -j DROP

# Singapore
iptables -A INPUT -s 103.28.54.0/24 -j DROP
iptables -A INPUT -s 103.28.55.0/24 -j DROP
iptables -A INPUT -s 103.10.124.0/24 -j DROP
iptables -A INPUT -s 45.121.184.0/24 -j DROP
iptables -A INPUT -s 45.121.185.0/24 -j DROP
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register


Or login with...
Sign in with Steam Sign in with Google
Social logins require cookies to stay logged in.

Buy Games
Buy games with our affiliate / partner links: