SRCDS Steam group


SRCDS not on master list
#1
Question 
Hello there!

This is my first thread here on SRCDS's forum, so please be kind if i missed some information that's needed.
I have some problems with my Counter-Strike Source servers not showing up on the master list.
I have tried reading around the web and so on.. But nothing seems to work for me.
So, i run around 9 servers all 24 slot and all 100 tick! They run over 2 different computers the first one called JHNSRV the second one called JHNSRV2.

System specs.

JHNSRV:
OS: Ubuntu Server Edition
[Image: jhnsrvversion.png]
CPU: Intel Core 2 Quad Q9505 (2.83 GHz)
RAM: 4*2 gb corsair ram DDR2
Motherboard: GigaByte P43-ES3G
Harddisk: 1*180 gb.
Cooling: Water cooling (H50)
Games: Runs 6 Counter-Strike Source servers.
Internal IP: 192.168.1.63

JHNSRV2:
OS: Ubuntu Server Edition
[Image: jhnsrv2version.png]
CPU: Intel Core 2 Quad Q9650 (3.00 GHz)
RAM: 4*2 gb corsair ram DDR2
Motherboard: GigaByte EP45-UD3LR
Harddisk: 2x500 gb RAID1
Cooling: Water cooling (H50)
Games: Runs 2 Counter-Strike Source servers. (And one TS and Mumble, but that's not important)
Internal ip: 192.168.1.64

All the servers have the latest MM, SM, Daf and Tickrate enabler.
The servers starts via this startup script.

PHP Code:
#!/bin/sh
# Source Dedicated Server Init Script

# Server options 
TITLE="css-deathrun"                                # Script initialization title
LONGNAME="Counter-Strike Source"                        # Full title of game type
NAME="css-deathrun"                                # Server handle for the screen session
DAEMON="srcds_run"                                # The server daemon
UPDATE="/servers/deathrun"                            # Update dir
STEAM="/servers/deathrun/orangebox"                        # STEAM to Steam installation

# Game options
PORT="27500"                                    # Port number to
MAP="deathrun_iceworld_v2"                            # Initial map to start
GAME="cstrike"                                    # Game type (tf|cstrike|valve|hl2mp)
SIZE="29"                                    # Maximum number of players
RCON="secret"                                    # Maximum number of players
USER="servers"                                    # Rcon password

# Server options string
OPTS="-game $GAME -tickrate 66 +map $MAP -port $PORT \
     +maxplayers 
$SIZE +rcon_password \"$RCON\"-pidfile /tmp/$NAME.pid"

# Screen command
CURRENT_USER=$(/usr/bin/whoami)
if [ 
"$CURRENT_USER"$USER]; then
    
INTERFACE="/usr/bin/screen -A -m -d -S $NAME"
  
else
    INTERFACE=
"sudo -u $USER /usr/bin/screen -A -m -d -S $NAME"
fi

clear
service_status
() {
    if [ ! -
/tmp/$NAME-screen.pid ] && [ ! -/tmp/$NAME.pid ]; then
        
echo "Offline"
    
else
    echo 
"Online"
    
fi
}

service_lock() {
    echo 
"Locking $NAME!"
    
chmod 555 -R $UPDATE
    chmod 777 
-R $STEAM/cstrike/addons/sourcemod/data
    chmod 777 
-R $STEAM/cstrike/DownloadLists
    chmod 777 $STEAM
/cstrike/cfg/banned_ip.cfg
    chmod 777 $STEAM
/cstrike/cfg/banned_user.cfg
    
echo "$NAME is now locked!"
}

service_unlock() {
    echo 
"Unlocking $NAME!"
    
chmod 777 -R $UPDATE
    
echo "$NAME is now unlocked!"
}

service_clear() {
    
# Removing all pid files
    
echo "Removing all Service pid files."
    
rm -rf /tmp/$NAME.pid 1> /dev/null 2> /dev/null
    rm 
-rf /tmp/$NAME-screen.pid 1> /dev/null 2> /dev/null
}

service_update() {
    if [ -
/tmp/$NAME-screen.pid ] && [ -/tmp/$NAME.pid ]; then
        service_stop
        sleep 2
        cd $UPDATE
        
./steam -command update -game "$LONGNAME-dir .
        
service_start
    
else
        
service_clear
        sleep 2
        cd $UPDATE
        
./steam -command update -game "$LONGNAME-dir .
        
service_start
    fi
}

service_start() {
    
# Check if the pid files currently exist
    
if [ ! -/tmp/$NAME-screen.pid ] && [ ! -/tmp/$NAME.pid ]; then
        
if [ -x $STEAM/$DAEMON ]; then
        chmod 777 
-R $UPDATE
            cd $STEAM
            $INTERFACE $STEAM
/$DAEMON $OPTS
            
# Prevent race condition on SMP kernels
            
sleep 2
            
# Find and write current process id of the screen process
            
ps -ef grep SCREEN grep "$NAMEgrep -v grep awk '{ print $2}' > /tmp/$NAME-screen.pid
        sleep 3
            
echo "Starting $TITLE - $LONGNAME\n"
            
# echo "Server none lan IP:"
            # curl -s checkip.dyndns.com | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+"
        
echo "\nServer lan IP: " 
        
ifconfig  grep 'inet addr:'grep -'127.0.0.1' cut -d: -f2 awk '{ print $1}'
            
echo "\nServer port:\n$PORT\n"
            
echo "Server size:\n$SIZE players\n"
            
echo "$TITLE screen process ID written to /tmp/$NAME.pid"
            
echo "$TITLE server process ID written to /tmp/$NAME-screen.pid"
            
echo "$TITLE started."
        
sleep 5
        chmod 555 
-R $UPDATE
        chmod 777 
-R $STEAM/cstrike/addons/sourcemod/data
        chmod 777 
-R $STEAM/cstrike/DownloadLists
        chmod 777 $STEAM
/cstrike/cfg/banned_ip.cfg
        chmod 777 $STEAM
/cstrike/cfg/banned_user.cfg
        chmod 666 
/tmp/$NAME.pid
        chmod 666 
/tmp/$NAME-screen.pid
        renice 
-20 `cat /tmp/$NAME.pid`
        
fi
    
else
        echo -
"Cannot start $TITLE.  Server is already running."
        
#exit 1
    
fi
}

service_stop() {
    if [ -
/tmp/$NAME-screen.pid ] && [ -/tmp/$NAME-screen.pid ]; then
        
# Get the process ID from the pid file we created earlier
        
for id in `cat /tmp/$NAME-screen.pid`
            do 
kill -9 $id
            rm 
-rf /tmp/$NAME-screen.pid
            
break
        
done
        
# Remove server pid file
        
rm -rf /tmp/$NAME.pid
        
# Wipe all old screen sessions
    
if [ "$CURRENT_USER"$USER]; then
        screen 
-wipe 1> /dev/null 2> /dev/null
      
else
        
sudo -u $USER screen -wipe 1> /dev/null 2> /dev/null
    fi
        chmod 777 
-R $UPDATE/*
    echo "Stopping $TITLE - $LONGNAME."
        echo "Killing process ID $id"
        echo "Removing $TITLE screen pid file"
        echo "Removing $TITLE pid file"
        echo "$TITLE stopped."
    else
        echo "Cannot stop $TITLE.  Server is not running."
        #exit 1
    fi
}


case "$1" in
    'update')
        service_update
        ;;
    'updatestop')
        service_update
        sleep 2
        service_stop
        ;;
    'status')
        service_status
        ;;
    'start')
        service_start
        ;;
    'startunlock')
    service_start
    sleep 2
    service_unlock
    ;;
    'stop')
        service_stop
        ;;
    'clear')
        service_clear
        ;;
   'lock')
    service_lock
        ;;
   'unlock')
    service_unlock
    ;;
   'restart')
        service_stop
        sleep 2
        service_start
        ;;
    *)
        echo "Usage $0 (start | startunlock | stop | restart | status | clear | lock | unlock | update | updatestop)"
esac 
Feel free to use the script above (Not me there made the basic to it).

The server.cfg i use for the servers.
PHP Code:
// server name
hostname "bla bla bla bla.." 

// rcon passsword
rcon_password "" // rcon disabled 

// Advanced RCON
sv_rcon_banpenalty 10 
sv_rcon_maxfailures 4 
sv_rcon_minfailures 5 
sv_rcon_minfailuretime 30 

//Sourcemod
sm_noblock "1"
forlix_deadchat_relay_mode "1"

// server cvars
sv_tags "Tags"
sv_airaccelerate 99999
sv_enableboost 
"1"
sv_enablebunnyhopping "1"
mp_friendlyfire 0 
mp_footsteps 1 
mp_autoteambalance 0
mp_autokick 1 
mp_flashlight 1 
mp_tkpunish 0 
mp_forcecamera 0 
sv_alltalk 1 
sv_pausable 0 
sv_cheats 0 
sv_consistency 0 
sv_allowupload 1 
sv_allowdownload 1 
sv_maxspeed 320 
mp_limitteams 999
mp_hostagepenalty 9999 
sv_voiceenable 1 
mp_allowspectators 1 
mp_timelimit 2147483647 
mp_chattime 10 
sv_timeout 30 

// round specific cvars
mp_freezetime 0 
mp_roundtime 9999
mp_startmoney 0 
mp_c4timer 999 
mp_fraglimit 0 
mp_maxrounds 0
mp_winlimit 0 
mp_playerid 0 
mp_spawnprotectiontime 0 

// bandwidth rates/settings
sv_maxupdaterate 101
sv_minupdaterate 100
sv_maxcmdrate 101
sv_mincmdrate 100
sv_maxrate 30000
sv_minrate 25000
fps_max 600
sv_unlag 1
sv_maxunlag .5
sv_downloadurl 
"MY URL!"

// server logging
log off 
sv_logbans 0 
sv_logecho 0 
sv_logfile 0 
sv_log_onefile 0 

// operation
sv_lan 0 
sv_region 0 
sv_contact secret 

// Master Servers
setmaster add 72.165.61.189:27011
setmaster add 69.28.140.247
:27011
setmaster add 68.142.72.250
:27011
setmaster add 72.165.61.189
setmaster add 69.28.140.247
setmaster add 68.142.72.250

// execute ban files
exec banned_user.cfg 
exec banned_ip
.cfg

// SM commands
cf_mode "0"
cf_countries "DK"
cf_reject_msg "Your country (%s) isn't allowed on this server"
cf_connect_msg "%s (Country: %s) was allowed to connect"

adsql_debug "0"
adsql_interval "30" 

I have all that in my server.cfg, but it doesn't show up on the master list. The server starts fine, except some small errors.. But i don't think that the errors fix able..

[Image: startup.png]

Both the servers are running on the same network (Internet connection).
[Image: 1285629463.png]
IP: 87.104.89.134

And the same router (pfSense on a IBM laptop).
[Image: pfsenseversion.png]

My internet rules and NAT setup are the following!

Nat Outbound:
[Image: npfsenseoutbound.png]

Nat Port Forward:
[Image: npfsenseportforward.png]

Rules Wan:
[Image: npfsenseruleswan.png]

Rules Lan:
[Image: npfsenseruleslan.png]

I have reseted the States Tables (Diagnostics => States => Reset States => Reset) but i still doesn't show up on the master list. And yes, i have waited in 2-3 days now, and still no sight of it. So if someone could please help me with this it would be great! If i missed some information just ask for it ;). And, one last thing. Is it possible to setup as i can connect to the server from the internal network to the external network (From LAN to WAN)?

Thanks!
Reply
#2
So no one knows what the problem is? : /
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)