Best way to protect Rcon but still use it?

Post Reply
paradox7
New to forums
New to forums
Posts: 3
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Dec 29, 2013 5:28 am

Best way to protect Rcon but still use it?

Post by paradox7 »

I posted a support ticket on this and they suggested I post the question here. I have many GMod servers with NFO and I absolutely must have rcon access to manage them all. I can get 200 players on at a time. My issue is, though I had sv_allowcslua and sv_allowupload both set to 0, and a random 16 digit rcon pw with characters and symbols, 2 of my servers were still hacked. I did check all the lua files to determine if a backdoor was included in any of my addons and could find nothing. I tried turning off rcon for a couple days (as I know this is safest), but I simply cant effectively administrate all my servers with it off. The folks at NFO tried putting +rcon_password in the startup line but every time the server restarted, rcon_password reset to "".

Can you offer any suggestions other than just getting rid of half my servers?
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Best way to protect Rcon but still use it?

Post by soja »

If you use a VDS or a managed dedi, you can use the firewall tab to whitelist your IP, and block all others from rcon.

Make these rules(in order):
1.) Accept all incoming packets from ips:
In the list of ips, put your home ip, as well as any other administration tools(sourcebans, etc).

2.) Block TCP packets from any IP on any port, to your server ip on port 27015


If you did this properly, you should be able to access RCON, and everyone else's packets will be blocked at the firewall(before they even reach the game server). In theory, even with your rcon password, people won't be able to issue rcon commands on your server.
Not a NFO employee
Post Reply