Skip to content

Docs /

Counter-Strike 2

CS2 runs on the generic UDP profile today. Put the game port behind ZEROPING, add CSTV if you broadcast, hand out the public ports the panel gives you, and keep RCON and your Game Server Login Token on your own machine.

Last updated 30 November 2026 v1.1

Coming soon Ports UDP 27015UDP 27020

The ports CS2 uses

These are common defaults. Check your host and your start command before you rely on them.

PortProtocolWhat it isRoute
27015UDPGame traffic and server queries (-port)Through ZEROPING
27020UDPCSTV, formerly GOTV (tv_port)Through ZEROPING
27015TCPRCONKeep private

CS2 answers server queries (A2S) on the game port itself, so there is no separate query port to add. Query floods sent to the public port are rate-limited at the edge before they reach your server.

Set the ports on your server

Start command
./game/bin/linuxsteamrt64/cs2 -dedicated -usercon \
  -port 27015 \
  +tv_enable 1 +tv_port 27020 \
  +game_type 0 +game_mode 1 +map de_inferno \
  +sv_setsteamaccount "$GSLT"

Drop +tv_enable 1 +tv_port 27020 if you do not broadcast matches. Your Game Server Login Token stays in this command on your own machine. ZEROPING never asks for it and never sees your Steam account.

Add the service

  1. In the panel go to Services, choose Add game server, then Counter-Strike 2. The panel selects the generic UDP profile.

  2. Enter your origin IP address and the first port, 27015. If you run CSTV, also enter 27020 as the last port; the service then forwards 27015 to 27020 (a range carries up to 10 ports of one protocol).

  3. Leave PROXY protocol off. CS2 does not read it.

  4. Choose the location closest to your server, name the service and save.

  5. Open the Connect tab. It shows your ZEROPING address, for example yourname.play.zeroping.hk, and one line per forwarded port: your origin port and the public port players use, for example 27015 → 40112 and 27020 → 40117.

Public ports

The edge gives each origin port its own public port. A public port is not always the same number as your origin port, and in a range the public ports are not always consecutive. Always hand out the numbers from the Connect tab.

That matters for anything the server announces by itself, because it announces your origin's address and ports:

  • Players connect to the public port shown for 27015.
  • CSTV spectators connect to the public port shown for 27020. A spectate option that gets its address from the server itself points at the origin and tv_port, which stop answering strangers once the origin is locked.
  • The server browser lists a server that registers with Steam under the origin address, with the same result. Community servers are usually joined by connect line or Discord anyway.

Hand out the new address

Point a name you control at the ZEROPING address, so lobbies and Discord posts never carry your origin.

DNS provider
play.example.net.  3600  IN  CNAME  yourname.play.zeroping.hk.

Players and spectators join from the console:

Console
connect play.example.net:40112
connect play.example.net:40117

Replace 40112 and 40117 with the public ports from your Connect tab. The first line joins the match, the second watches it on CSTV. For a private scrim, add ; password yourpass to the first line.

Keep RCON private

RCON shares the number 27015 but runs over TCP, and ZEROPING never proxies it. Open TCP 27015 only to your own address, or use a VPN. Set a long rcon_password and keep it out of shared configs.

Close the origin

Allow the game and CSTV ports only from the ranges on the service's Connect tab. Everything else is dropped.

Origin server
$ sudo ufw default deny incoming
$ sudo ufw allow from 203.0.113.0/24 to any port 27015:27020 proto udp
$ sudo ufw allow from 198.51.100.7 to any port 27015 proto tcp
$ sudo ufw allow from 198.51.100.7 to any port 22 proto tcp
$ sudo ufw enable

203.0.113.0/24 and 198.51.100.7 are documentation examples. Use the ranges your panel lists and your own admin address. Add the SSH rule before you enable the firewall.

Test it

  1. On the Connect tab choose Check connection. A pass means the edge reached your origin on UDP 27015.

  2. Join with connect play.example.net:<public port>. If you run CSTV, open a second client and connect to the public port shown for 27020.

  3. From a network that is not on your allow list, try the old origin address. It should time out.

If the check times out, the origin firewall is not allowing the ZEROPING ranges yet. If players connect but CSTV does not, make sure the service's range reaches 27020, tv_port matches it, and spectators use the public port shown for it.

Was this helpful?

Products

Games

More

Reduce motion