Raised This Month: $51 Target: $400
 12% 

RCON bruteforcing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
R4to0.exe
Member
Join Date: Sep 2008
Location: Sao Paulo,Brazil
Old 09-28-2012 , 00:33   RCON bruteforcing
Reply With Quote #1

Some n00b is using some type of bruteforcing and spoofing the IPs on my server. Today my listip.cfg was about 1200 of banned IPs because of this sh*t. I had to delete all banned IPs because they are shared and legit players can't enter.

20min map logging: http://puu.sh/19j7X
last 24h logging: http://puu.sh/19jLU (14k of lines)

Someone have any idea about that? There is a way to restrict rcon_password to specified IPs?

Thanks anyway.
R4to0.exe is offline
Send a message via MSN to R4to0.exe Send a message via Skype™ to R4to0.exe
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-28-2012 , 00:55   Re: RCON bruteforcing
Reply With Quote #2

Yes, but not through HLDS. You have to use a firewall to do it.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
RaHBeR
๏_๏
Join Date: Jul 2012
Old 09-28-2012 , 07:42   Re: RCON bruteforcing
Reply With Quote #3

Hi,
YamiKaitou we can restrict the TCP protocol to some IPs in the firewall, right? RCON commands use the TCP protocol?
Regards,
RaHBeR
RaHBeR is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-28-2012 , 07:44   Re: RCON bruteforcing
Reply With Quote #4

Yes, RCON uses TCP. Game traffic uses UDP. So, blocking TCP access from various IPs will not disrupt their ability to play on your server.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
RaHBeR
๏_๏
Join Date: Jul 2012
Old 09-28-2012 , 12:06   Re: RCON bruteforcing
Reply With Quote #5

Hi Again,
Ok thanks YamiKaitou for info and R4to0.exe for bring up this topic.
Regards,
RaHBeR
RaHBeR is offline
R4to0.exe
Member
Join Date: Sep 2008
Location: Sao Paulo,Brazil
Old 09-28-2012 , 13:10   Re: RCON bruteforcing
Reply With Quote #6

But goldsrc uses UDP for rcon commands, no?
R4to0.exe is offline
Send a message via MSN to R4to0.exe Send a message via Skype™ to R4to0.exe
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 09-28-2012 , 13:13   Re: RCON bruteforcing
Reply With Quote #7

Quote:
Originally Posted by YamiKaitou View Post
Yes, RCON uses TCP. Game traffic uses UDP. So, blocking TCP access from various IPs will not disrupt their ability to play on your server.
You're wrong, rcon uses UDP. I don't know any implementation using tcp. At least goldsrc.
In fact if you run hlds and check listening ports, you can see that only udp are bound.

In a linux server, there's a way to use iptables to filter rcon packets with specific information or all packets.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.

Last edited by joropito; 09-28-2012 at 13:13.
joropito is offline
Send a message via MSN to joropito
R4to0.exe
Member
Join Date: Sep 2008
Location: Sao Paulo,Brazil
Old 10-05-2012 , 12:22   Re: RCON bruteforcing
Reply With Quote #8

Disabled rcon but the shitty still trying, flooding my log files. There is a way to filter the rcon commands, as the noob is trying with only 3 chars? And the spoofed ips are being banned by hlds(last time checked, about 2000 of banned ips, and i ban players only by steam id).

Thanks anyway.
R4to0.exe is offline
Send a message via MSN to R4to0.exe Send a message via Skype™ to R4to0.exe
S0m3Th1nG_AwFul
Member
Join Date: Sep 2011
Location: is not known.
Old 10-06-2012 , 05:47   Re: RCON bruteforcing
Reply With Quote #9

R4to0.exe,

You can try use this plugin
PHP Code:
#include <amxmodx>
#include <orpheu>
#define PLUGIN "RCON-disabler"
#define VERSION "0.1"
#define AUTHOR "S0m3Th1nG_AwFul!"

new rcon_disabled

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
rcon_disabled register_cvar("rcon_disabled""1")
    
OrpheuRegisterHook(OrpheuGetFunction("SV_Rcon"), "On_Rcon_Pre"OrpheuHookPre)
}

public 
OrpheuHookReturn:On_Rcon_Pre()
{
    if(
get_pcvar_num(rcon_disabled))
        return 
OrpheuSupercede
    
    
return OrpheuIgnored

This will totally disable RCON functionality, so you will not see any logs from it.
Plugin requires (it's not possible to do such thing without it!) Orpheu module and signature I provided below.
Attached Files
File Type: zip SV_Rcon.zip (1.0 KB, 309 views)

Last edited by S0m3Th1nG_AwFul; 10-07-2012 at 06:01. Reason: fixed typo in code
S0m3Th1nG_AwFul is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode