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.
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.
| Port | Protocol | What it is | Route |
|---|---|---|---|
27015 | UDP | Game traffic and server queries (-port) | Through ZEROPING |
27020 | UDP | CSTV, formerly GOTV (tv_port) | Through ZEROPING |
27015 | TCP | RCON | Keep 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
./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
In the panel go to Services, choose Add game server, then Counter-Strike 2. The panel selects the generic UDP profile.
Enter your origin IP address and the first port,
27015. If you run CSTV, also enter27020as the last port; the service then forwards27015to27020(a range carries up to 10 ports of one protocol).Leave PROXY protocol off. CS2 does not read it.
Choose the location closest to your server, name the service and save.
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 example27015 → 40112and27020 → 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 andtv_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.
play.example.net. 3600 IN CNAME yourname.play.zeroping.hk. Players and spectators join from the 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.
$ 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
On the Connect tab choose Check connection. A pass means the edge reached your origin on UDP
27015.Join with
connect play.example.net:<public port>. If you run CSTV, open a second client and connect to the public port shown for27020.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?