SRCDS Steam group


[Resolved] Server hacked for 3rd time
#1
Game: Counter Strike Source
Server OS: CentOS Linux 5.4
Processor: Quad Xeon's
RAM: 8gb
Startup Command:
Code:
./srcds_i686-thegreatmdk_1 -game cstrike -tickrate 66 +fps_max 600 +alias sys_ticrate locked +alias max_fps locked +exec server.cfg +ip 174.37.209.121 +port 27015 -autoupdate +maxplayers 44 +map de_dust2

Is there ANYTHING I can do to block my server from being hacked?
I had Mani on it before with a lot of anti-hacking addons with Eventscripts and it got hacked twice.
I then moved to Sourcemod and used the anti-hack things that I found in their Wiki. Now it just got hacked again. This has all happened within 2 weeks.
These people seem to hack it VERY easily and change server name and password. I am the only one who knows the rcon pass, which is very complicated and I have a thing installed to lock rcon.

Can anyone out there tell me what I can do to stop this? Its ridiculous...
Reply
#2
How did you get hacked? Did they use Rcon or such?

Is your rcon password longer then 10-15 chars?

And I found the most effective way, just be make it so it auto restart if it gets hacked.
Reply
#3
Try enable logging, and see what happens. Thats often the best way to determine how they hack your server..
Slå den med jeres fiberforbindelser...

[Image: 1308107839.png]
Reply
#4
Yeah they seem to use the RCon password every time. I went through logs and found that out. I have banned their Steam ID's since then. Found some people that keep trying to access RCon with bad password and others just seem to get it right on.
Password is always 20 characters or more and I'm the only one that knows about it. I use randomly generated passwords.
Reply
#5
Both Mani and Eventscripts has backdoor hacks to get into. (Mani being the easiest to hack) I would use Sourcemod as an admin plugin, and if you are going to use Eventscripts, use IronWall. I would also recommend getting Kigen's Anti Cheat for Sourcemod as well as RCON Lock.

Be sure your RCON pass is mixed case, at least 16 digits, and includes numbers for higher security.
Reply
#6
OR
Just don't use an rcon password at all?
Looking for a game server? Visit fullfrag.com and pick one up as low as $2.50 / mo!
Reply
#7
Don't allow TCP through your firewall. You only need UDP for the game server. Access RCON locally if possible. That's what I do. Smile
-Ryan
Gamers don't die... They just respawn.
Respawn Gaming - Co-Owner
[Image: b_350x20_CFFAD41-E98100-000000-591F11.png]
[Image: b_350x20_C692108-381007-FFFFFF-000000.png]
Reply
#8
(03-09-2010, 08:58 AM)Tech Wrote:  Don't allow TCP through your firewall. You only need UDP for the game server. Access RCON locally if possible. That's what I do. Smile
If you're hosting in a data center, that normally not an option.

I would guess it's a plugin issue.
~ Mooga ...w00t? - SRCDS.com on Twitter
[Image: 76561197965445574.png]
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Reply
#9
(03-09-2010, 12:29 PM)Mooga Wrote:  
(03-09-2010, 08:58 AM)Tech Wrote:  Don't allow TCP through your firewall. You only need UDP for the game server. Access RCON locally if possible. That's what I do. Smile
If you're hosting in a data center, that normally not an option.

I would guess it's a plugin issue.

He could use another port for the rcon aswell Smile
Slå den med jeres fiberforbindelser...

[Image: 1308107839.png]
Reply
#10
Don't use mani admin plugin & eventscript. they have many many exploits and crash. why people still using these 2 suck plugin
Reply
#11
Or lockdown the firewall to only allow TCP from a certain IP if that is possible from the datacenter... Just a thought ::shrug::
-Ryan
Gamers don't die... They just respawn.
Respawn Gaming - Co-Owner
[Image: b_350x20_CFFAD41-E98100-000000-591F11.png]
[Image: b_350x20_C692108-381007-FFFFFF-000000.png]
Reply
#12
+rcon_password blah

In your target line, if you don't have target line access....

Rename server.cfg to serv_conf.cfg, create a new server.cfg file and type ONLY exec serv_conf.cfg.
Reply
#13
This may sound bizarre but who else has access to the server exactly? (The centos box itself) because someone could easily mess with it. Also I would recommend using screen because it is easier to deal with a problem directly through ssh rather than restarting the server. Your server could just lack security all around and people have access to it. If your running srcds as root there might be some kind of backdoor problem if you have iptables down. There is so many things that can go wrong. Honestly if nothing works, do a complete reinstall of the server in another DIR. and start from scratch, and use a 64 character long rcon. If all these fail then you should have trust issues with your gaming "friends".


***Harden your OS***
Edit: Create another user, go into /etc/sudoers and add your name under root and fill in the ALL=(ALL) stuff. Disable root login for SSH. restart ssh. shutdown any FTP that you have running. If you use proftpd I highly recommend uninstalling that, that has HUGE holes in the coding.

Code:
yum remove proftpd

I recommend installing vsftpd

Code:
yum install vsftpd

after that, go into ssh and simply type "setup" without the "" and select vsftpd to start at boot time.

Before you start vsftpd add these lines to your config.

Code:
cd /
cd /etc/vsftpd
nano vsftpd.conf

(make sure your root)
add these lines at the BOTTOM of your config.

Code:
write_enable=YES
local_enable=YES

I believe that should be it but don't quote me on that.

after this is all said in done start vsftpd and it should work, if it doesn't you might need to enable something else for your vsftpd config

Code:
/etc/init.d/vsftpd restart
Reply
#14
Thanks for the replies. I've gotten rid of Mani and Eventscripts and now using Sourcemod only. No hacks yet.
I don't have any access to the server box itself and only the host can do that, I don't own it.
Big Grin
Reply
#15
(03-10-2010, 12:21 PM)empmdk Wrote:  Thanks for the replies. I've gotten rid of Mani and Eventscripts and now using Sourcemod only. No hacks yet.
I don't have any access to the server box itself and only the host can do that, I don't own it.
Big Grin

Guys, lets make a campaign to get everyone to switch from mani to sm!
Slå den med jeres fiberforbindelser...

[Image: 1308107839.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)