Setup a CSS Dedicated Server

apt update
apt install -y lib32gcc1 libc6-i386 wget

mkdir /steam
cd /steam

wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz
tar -xvf steamcmd_linux.tar.gz

./steamcmd.sh
login anonymous
force_install_dir ./css/
app_update 232330 validate
quit
cd ./css/
./srcds_run -console -game cstrike -tick 100 -maxplayers 20 -port 27015 +map de_dust2

Docker

docker run --rm -it \
  -p 27005:27005/udp \
  -p 27015:27015/tcp \
  -p 27015:27015/udp \
  ubuntu:18.04 bash

Port Forwards

  • 27005, UDP
  • 27015, TCP & UDP