Insurgency: Modern Infantry Combat Server Guide

📋 Quick Info

Server Specifications

🔌 Ports & Firewall Configuration

Insurgency servers require specific ports for proper operation:

Port Protocol Purpose Required
27015 (configurable) UDP Game port Yes
27015 (same as game port) UDP Query/RCON port Yes
27005 UDP Client port No
26900 UDP Steam master server updater No
27020 UDP SourceTV port (if enabled) No

Firewall Examples

UFW (Ubuntu/Debian):

sudo ufw allow 27015/udp comment 'Insurgency Game/Query Port' sudo ufw allow 27020/udp comment 'Insurgency SourceTV' sudo ufw allow 26900/udp comment 'Steam Master Server'

FirewallD (CentOS/RHEL):

sudo firewall-cmd --permanent --add-port=27015/udp sudo firewall-cmd --permanent --add-port=27020/udp sudo firewall-cmd --permanent --add-port=26900/udp sudo firewall-cmd --reload

iptables:

iptables -A INPUT -p udp --dport 27015 -j ACCEPT iptables -A INPUT -p udp --dport 27020 -j ACCEPT iptables -A INPUT -p udp --dport 26900 -j ACCEPT

⚙️ Installation & Setup

System Requirements

Installation via SteamCMD (Linux)

  1. Install SteamCMD:
    sudo apt update sudo apt install lib32gcc1 steamcmd # Debian/Ubuntu # OR for manual install: mkdir ~/steamcmd && cd ~/steamcmd wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz tar -xvzf steamcmd_linux.tar.gz
  2. Download Insurgency Server Files:
    ./steamcmd.sh login anonymous force_install_dir ./insurgency-server app_update 222880 validate quit
  3. Install Insurgency Mod:
    # Insurgency mod files should be placed in: # insurgency-server/insurgency/ # Download mod content from official sources

Installation via SteamCMD (Windows)

  1. Download SteamCMD from Valve's website
  2. Extract to C:\steamcmd\
  3. Run steamcmd.exe and execute:
    login anonymous force_install_dir C:\insurgency-server app_update 222880 validate quit

📝 Configuration

server.cfg Example

Create or edit insurgency/cfg/server.cfg:

// Server Identity hostname "Tactical Insurgency Server" sv_password "" // Leave blank for public server // Server Rates sv_minrate 10000 sv_maxrate 30000 sv_minupdaterate 20 sv_maxupdaterate 66 sv_mincmdrate 20 sv_maxcmdrate 66 // Server Region (see Region Codes) sv_region 1 // 1 = East Coast USA // Server Visibility sv_lan 0 // 0 for internet, 1 for LAN only sv_logbans 1 sv_logecho 1 sv_logfile 1 sv_log_onefile 0 // RCON (Remote Console) rcon_password "your_secure_password" sv_rcon_banpenalty 0 sv_rcon_maxfailures 5 // Contact & Tags sv_contact "admin@example.com" sv_tags "tactical,realistic,teamwork" // Insurgency-Specific Settings mp_timelimit 30 // Time limit per map (minutes) mp_roundtime 5 // Round time limit (minutes) mp_winlimit 0 // Rounds to win (0 = disabled) // Friendly Fire mp_friendlyfire 1 // 1 = enabled (realistic mode) mp_tkpunish 0 // TK punishment // Team Settings mp_autoteambalance 1 mp_limitteams 1 // Gameplay ins_bot_quota 0 // Number of bots (0 = none) ins_bot_difficulty 2 // Bot skill (0-4, 2 = medium) // Voice Chat sv_alltalk 0 // 0 = team only, 1 = everyone sv_voiceenable 1 // Download Settings sv_allowdownload 1 sv_allowupload 1 sv_downloadurl "" // FastDL URL (optional) // Performance sv_maxcmdrate 66 sv_maxupdaterate 66 fps_max 300 // Server Protection sv_pure 1 // File consistency checking sv_consistency 1 // Exec ban files exec banned_user.cfg exec banned_ip.cfg

mapcycle.txt Example

Create insurgency/cfg/mapcycle.txt with your map rotation:

ins_baghdad ins_embassy ins_ministry ins_siege ins_station ins_almaden ins_heights ins_kashan

Game Modes Configuration

Set game mode in startup parameters or console:

// Push Mode (attacking/defending objectives) ins_gametype push // Strike Mode (plant/defuse objectives) ins_gametype strike // Firefight Mode (capture and hold) ins_gametype firefight // Skirmish Mode (small team tactical) ins_gametype skirmish

🚀 Startup Parameters

Parameter Description Example
-game Game directory name -game insurgency
-console Enable console output -console
-port Server port -port 27015
-maxplayers Maximum players -maxplayers 16
+map Starting map +map ins_baghdad
+exec Execute config file +exec server.cfg
-tickrate Server tickrate -tickrate 66
-ip Bind to specific IP -ip 192.168.1.100
+tv_enable Enable SourceTV +tv_enable 1
+sv_lan LAN server mode +sv_lan 0

Example Startup Command (Linux)

./srcds_run -game insurgency -console -port 27015 -maxplayers 16 +map ins_baghdad +exec server.cfg -tickrate 66

Example Startup Command (Windows)

srcds.exe -game insurgency -console -port 27015 -maxplayers 16 +map ins_baghdad +exec server.cfg -tickrate 66

Example Startup Script (Linux with Screen)

#!/bin/bash cd /home/insurgency/insurgency-server screen -dmS insurgency ./srcds_run \ -game insurgency \ -console \ -port 27015 \ -maxplayers 16 \ +map ins_baghdad \ +exec server.cfg \ -tickrate 66

🔧 Troubleshooting

Server Not Appearing in Browser

Issue: Server not visible in game server browser.

Solutions:

Missing Mod Content

Issue: Server fails to start or clients can't connect.

Solutions:

Connection Failed/Timeout

Issue: Players cannot connect to server.

Solutions:

High Ping/Lag Issues

Issue: Players experiencing latency.

Solutions:

Bot Issues

Issue: Bots not working or causing problems.

Solutions:

SourceMod/MetaMod Issues

Issue: Plugins not loading correctly.

Solutions:

🎮 Game Modes

Push Mode

Objective-based attack/defense. Attackers must capture objectives in sequence while defenders hold them.

Strike Mode

Plant/defuse objectives similar to Counter-Strike. One team plants explosive, other team defuses.

Firefight Mode

Capture and hold objectives to score points. Fast-paced tactical combat.

Skirmish Mode

Small team tactical combat with limited lives. Realistic and hardcore.

🗺️ Official Maps

Default Maps

Community Maps

Install custom maps to insurgency/maps/ directory and add to mapcycle.txt.

🔌 Mods & Plugins

Insurgency uses Source engine modding:

SourceMod

Server administration and plugin framework.

MetaMod:Source

Required by SourceMod - install first.

Related Game Documentation

👤 Admin Commands

Basic Console Commands

status # Show players and server info kick [name/userid] # Kick player kickid [userid] # Kick by UserID banid [minutes] [userid]# Ban player addip [minutes] [ip] # Ban IP address changelevel [map] # Change map immediately map [map] # Load specific map mp_restartgame [delay] # Restart game after delay ins_bot_add # Add bot ins_bot_kick # Remove bot

RCON Commands (Remote)

Connect via RCON tool using password set in rcon_password:

rcon_password [password] # Authenticate rcon [command] # Execute command remotely

📚 Resources

Important Notes