SRCDS Steam group

BAN file automatically clears itself...
# Operating System: Windows XP Pro
# Type of Server: Standalone
# Relation to Server: NO FTP Access, sitting right next to it at home.
# Game Mod: Counter-Strike: Source
# Version of Mani Admin Plugin: 1.2 beta o
# Version of MetaMod: Source: Not Installed
# Plugins: Event Scirpts

My server was hacked. Don't know how, but they did it while on the server. I am using the old version of Mani because I had problems with ban before (didn't work at all). Until this hacker I didn't notice my new ban issue. My new ban issue is that my banned_user file clears itself on map changes and restarting of the server (software). It seems like every time the server reloads the maniserver.cfg and server.cfg the banned_user file clears its self. Is this a known issue, how can it be fixed?
HERE IS MY Server.cfg:
exec mani_server.cfg
exec mani_quake_sounds.cfg
//------------------------------//**Main Server Config**\\--------------------------------\\

hostname "AoTD Clan Server [Fast-DL, 1000FPS, 100Tick]"    //Hostname for server.
sv_password " "            //Server password for entry into multiplayer games
//ip youriphereifulike        //Overrides IP for multihomed hosts (just backup, not needed)
//hostport 27015        //Host game server port (just backup, not needed)
sv_lan 0            //Server is a lan server ( no heartbeat, no authentication, no non-class C addresses, 9999.0 rate, etc. )
motdfile motd.txt        //The MOTD file to load
mapcyclefile mapcycle.txt    //File to load mapcycle from
net_maxfilesize 100
sv_downloadurl ""    //Location from which clients can download missing files (don't use if you don't have webspace)
fps_max 1000            //Frame rate limiter (FPS is important on the server, this sets the limit higher)


rcon_password *****        //remote console password
latency_limit 500
sv_rcon_banpenalty 0        //Number of minutes to ban users who fail rcon authentication
sv_rcon_maxfailures 5        //Max number of times a user can fail rcon authentication before being banned
sv_rcon_minfailures 5        //Number of times a user can fail rcon authentication in sv_rcon_minfailuretime before being banned
sv_rcon_minfailuretime 20    //Number of seconds to track failed rcon authentications


//------------------------------//**Main Game Settings**\\--------------------------------\\

mp_restartgame 0        //If non-zero, game will restart in the specified number of seconds
mp_roundtime 2            //How many minutes each round takes.
mp_autokick 0            //Kick idle/team-killing players
mp_timelimit 30            //game time per map in minutes
mp_winlimit 0            //max number of rounds one team can win before server changes maps
mp_maxrounds 15            //max number of rounds to play before server changes maps
mp_fraglimit 0            //max number of kills to get before server changes maps
mp_allowspectators 1        //toggles whether the server allows spectator mode or not
mp_buytime 3            //How many minutes after round start players can buy items for.
mp_freezetime 2            //how many seconds to keep players frozen when the round starts

decalfrequency 20        //Amount of time in seconds a player can spray their decal
mp_friendlyfire 0        //Allow friendly fire
mp_falldamage 1            //Will players be damaged when they fall a certain distance
mp_footsteps 1            //Makes clients hear footsteps of eachother
mp_flashlight 1            //Allow the flashlight to be used
mp_forcecamera 0        //Restricts spectator modes for dead players
mp_fadetoblack 0        //fade a player's screen to black when he dies
mp_chattime 15            //amount of time players can chat after the game is over

mp_startmoney 1000        //amount of money each player gets when they join the game
mp_c4timer 35            //how long from when the C4 is armed until it blows
mp_tkpunish 0            //Will a TK'er be punished in the next round?  {0=no,  1=yes}
mp_hostagepenalty 0        //Terrorist are kicked for killing too much hostages
mp_spawnprotectiontime 0    //Kick players who team-kill within this many seconds of a round restart.

mp_playerid 0            //Controls what information player see in the status bar: 0 all names, 1 team names, 2 no names


//---------------------------------//**Team Settings**\\----------------------------------\\

mp_autoteambalance 1        //Server automatically changes players to even teams

//mp_defaultteam 0        //What is the default team to join?
//mp_humanteam any        //Restricts human players to a single team {any, CT, T}

mp_limitteams 1            //Max # of players 1 team can have over another (0 disables check)
mp_teamoverride 1        //Allow server to regulate teams



sv_contact    //Contact email for server sysop
sv_region 0            //The region of the world to report this server in.0=US East coast, 1=US West coast, 2= South America, 3=Europe, 4=Asia, 5=Australia, 6=Middle East, 7=Africa and 255=world.
sv_cheats 0            //Allow cheats on server
sv_pausable 0            //Is the server pausable.

sv_filterban 1            //Set packet filtering by IP mode

sv_forcepreload 0        //Force server side preloading.

sv_allowdownload 1        //Allow clients to download files
sv_allowupload 1        //Allow clients to upload customizations files

sv_maxcmdrate 101
sv_mincmdrate 100

sv_maxrate 30000        //Max bandwidth rate allowed on server, 0 == unlimited
sv_minrate 25000        //Min bandwidth rate allowed on server, 0 == unlimited

sv_maxupdaterate 101        //Maximum updates per second that the server will allow (don't change this)
sv_minupdaterate 100        //Minimum updates per second that the server will allow (don't change this)

sv_unlag 1            //Enables player lag compensation
sv_maxunlag 1            //Maximum lag compensation in seconds
sv_unlag_debug 0        //Debugs lag compensation

sv_alltalk 1            //Players can hear all other players, no team restrictions
sv_footsteps 1            //Play footstep sound for players
sv_timeout 60            //After this many seconds without a message from a client, the client is dropped
sv_voiceenable 1        //Enables voice talking ingame
sv_voicecodec vaudio_speex



bot_chatter 0
//bot_defer_to_human 1
bot_difficulty 1        // 1- Easy  2- hard  3- Impossible
//bot_join_after_player 0
bot_prefix "AoTD | Bot."    // Bots get this infront of their name (-[Im-A-Bot]- Shawn)
//bot_quota 20            // Maximum amount of bots that join the game
//bot_quota_mode normal
bot_auto_vacate 1        // Bots automatically leave the server to make room for players
//bot_auto_follow 1        // Bots follow human players
//bot_allow_rogues 0        // Allow bots to go their own way
bot_eco_limit 3000        // Bots won't buy anything when cash is below this amount
//bot_allow_grenades 1
//bot_allow_machine_guns 1
//bot_allow_pistols 1
//bot_allow_rifles 1
//bot_allow_shotguns 1
//bot_allow_snipers 0
//bot_allow_sub_machine_guns 1
//bot_join_team CT



log on                //Creates a logfile (Enable= on Disable= off)
sv_logfile 1            //Log server information in the log file.
sv_logsdir C:\SRCDS\cstrike\logs    //Folder in the game directory where server logs will be stored.

sv_logecho 0            //Echo log information to the console.

sv_log_onefile 1        //Log server information to only one file.
sv_logbans 1            //Log server bans in the server logs.
sv_logdownloadlist 1        //Log files to download.

sv_deltaprint 0            //Print accumulated CalcDelta profiling data (only if sv_deltatime is on)


//----------------------------------//**exec cfg files**\\---------------------------------------\\

exec banned_user.cfg
I was told that it might have something to do with the order in which the writeip write id and exec banned_user.cfg files are executed.
Any help would be great. Thanks... REALLY GETTING SICK OF STUPID BAN!
sv_filterban 0            //Set to 0
I had that set to 0 before. and when I did that ban didn't work at all...
Try agian
I read over on that the logging cvar's should always be the last thing in the server.cfg. So try moving the writeip, writeid, and exec banned_user.cfg above the logging module that you have in your server.cfg.
I'll give it a shot, thank you Sgt Player. Why would that cause the clearing of the banned_user file, do you know?
you could also use a plugin like sum (it's a sourcemod plugin) that writes all bans to a mysql database. those bans don't get lost ever, and they can be shared among servers. (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Behaartes, I don't like sourcemod, so that solution wont work for me. Loopyman, I have no idea what your trying to say. You're grammar doesn't seem to be very good. Thanks for trying to help though. I have yet to try your idea Sgt Player but I will report back as soon as I do. Just haven't had the time yet.
I never tried to moving the writeid and writeip but I removed the writeip and writeid from the server.cfg entirely. It now writes the bans as banid 0 STEAM_0:0:########, instead of just the steam ids, which works for me. I connected to the server with one of my steam accounts banned myself and it wrote to the ban file as shown above. So this works if anyone needs a fix. Only thing that is different is when you try to connect to the server (when banned) it won't give the same popup message. I believe the old one was something like "you have been banned from this server", and the new one says "banid 0 STEAM_0:0:######". Anyway, this fixes my ban issue completely. Thanks for all your help guys.

Forum Jump:

Users browsing this thread: 1 Guest(s)