Skip to content

Instantly share code, notes, and snippets.

@jakoch
Created May 18, 2020 17:47
Show Gist options
  • Save jakoch/acc14e05308b28300345276116b32f26 to your computer and use it in GitHub Desktop.
Save jakoch/acc14e05308b28300345276116b32f26 to your computer and use it in GitHub Desktop.
Block all CS:GO MatchMaking Servers (allow only Amsterdam, Frankfurt, London, Luxemburg, Vienna)

Block all CS:GO MatchMaking Servers (allow only Amsterdam, Frankfurt, London, Luxemburg, Vienna)

IPs are taken from github.com/SteamDatabase/SteamTracking/Random/NetworkDatagramConfig.json

Add Firewall Rule to lock servers

netsh advfirewall firewall add rule name="csgo-mm-servers-block" dir=out action=block remoteip=18.162.88.34/32,34.85.12.153/32,34.85.40.62/32,34.85.47.228/32,34.212.218.15/32,42.81.120.140/32,42.81.120.141/32,42.81.120.142/32,42.81.120.143/32,42.81.120.144/32,42.81.120.145/32,61.182.135.15/32,61.182.135.16/32,61.182.135.18/32,61.182.135.72/32,103.10.124.40/32,103.10.124.43/32,103.10.124.44/32,103.10.124.45/32,103.10.124.99/32,103.10.124.100/32,103.10.124.101/32,103.10.124.102/32,103.10.125.146/32,103.10.125.154/32,103.10.125.162/32,111.32.164.141/32,111.32.164.142/32,111.32.164.143/32,111.32.164.144/32,111.32.164.145/32,111.32.164.146/32,116.211.132.11/32,116.211.132.12/32,116.211.132.13/32,116.211.132.14/32,117.184.42.132/32,117.184.42.133/32,117.184.42.134/32,117.184.42.135/32,117.184.42.136/32,117.184.42.137/32,121.46.225.11/32,121.46.225.12/32,121.46.225.13/32,121.46.225.14/32,121.46.225.15/32,121.46.225.16/32,125.39.181.11/32,125.39.181.12/32,125.39.181.13/32,125.39.181.14/32,125.39.181.15/32,125.39.181.16/32,125.88.173.11/32,125.88.173.12/32,125.88.173.13/32,125.88.173.14/32,125.88.174.11/32,125.88.174.12/32,125.88.174.13/32,125.88.174.14/32,125.88.174.15/32,125.88.174.16/32,153.254.86.26/32,153.254.86.27/32,153.254.86.28/32,153.254.86.164/32,153.254.86.165/32,153.254.86.166/32,153.254.86.167/32,153.254.86.168/32,153.254.86.180/32,153.254.86.182/32,153.254.86.183/32,153.254.86.184/32,155.133.230.35/32,155.133.230.36/32,155.133.230.51/32,155.133.230.52/32,155.133.230.66/32,155.133.230.67/32,155.133.230.68/32,155.133.230.69/32,155.133.232.98/32,155.133.233.98/32,155.133.233.99/32,155.133.235.18/32,155.133.235.34/32,155.133.238.162/32,155.133.238.163/32,155.133.239.18/32,155.133.239.19/32,155.133.239.25/32,155.133.239.26/32,155.133.239.50/32,155.133.239.59/32,155.133.245.34/32,155.133.245.35/32,155.133.246.34/32,155.133.246.50/32,155.133.246.66/32,155.133.246.67/32,155.133.249.162/32,155.133.249.178/32,155.133.249.194/32,155.133.252.34/32,155.133.252.35/32,155.133.252.36/32,155.133.252.37/32,155.133.252.38/32,155.133.252.50/32,155.133.252.51/32,155.133.252.52/32,155.133.252.53/32,155.133.252.66/32,155.133.252.67/32,155.133.252.68/32,155.133.252.69/32,155.133.253.4/32,155.133.253.19/32,155.133.253.34/32,155.133.254.130/32,155.133.254.131/32,155.133.254.138/32,155.133.254.139/32,155.133.254.140/32,155.133.254.141/32,157.255.37.14/32,157.255.37.15/32,157.255.37.16/32,157.255.37.17/32,157.255.37.18/32,157.255.37.19/32,162.254.192.66/32,162.254.192.67/32,162.254.192.69/32,162.254.192.70/32,162.254.192.83/32,162.254.192.86/32,162.254.192.99/32,162.254.193.71/32,162.254.193.72/32,162.254.193.73/32,162.254.193.98/32,162.254.193.99/32,162.254.193.100/32,162.254.193.101/32,162.254.195.70/32,162.254.195.86/32,162.254.198.40/32,162.254.198.41/32,162.254.198.42/32,162.254.198.43/32,162.254.198.100/32,162.254.198.101/32,162.254.198.102/32,162.254.198.103/32,162.254.199.170/32,162.254.199.178/32,180.153.252.11/32,180.153.252.12/32,180.153.252.13/32,180.153.252.14/32,183.136.230.11/32,183.136.230.12/32,183.136.230.13/32,183.136.230.14/32,183.232.225.17/32,183.232.225.18/32,183.232.225.19/32,183.232.225.20/32,183.232.225.21/32,183.232.225.22/32,185.25.182.66/32,185.25.182.67/32,185.25.182.68/32,185.25.182.69/32,185.25.183.162/32,185.25.183.178/32,190.217.33.34/32,190.217.33.50/32,190.217.33.66/32,205.185.194.34/32,205.185.194.35/32,205.185.194.36/32,205.185.194.50/32,205.185.194.51/32,205.185.194.52/32,205.185.194.196/32,205.185.194.212/32,205.196.6.66/32,205.196.6.74/32,205.196.6.148/32,211.95.37.141/32,211.95.37.142/32,211.95.37.143/32,211.95.37.144/32,211.95.37.145/32,211.95.37.146/32,220.194.68.11/32,220.194.68.12/32,220.194.68.13/32,220.194.68.14/32

Show Firewall Rule

netsh advfirewall firewall show rule name="csgo-mm-servers-block"

Remove Firewall Rule to unblock servers

netsh advfirewall firewall delete rule name="csgo-mm-servers-block"

Usage

  1. Right-Click Windows "Start" Menu-Icon.
  2. Left-Click "Windows Powershell (Administrator)" or open any other elevated command prompt.
  3. Copy & paste the commands you want to run from this document to the command prompt and hit enter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment