Create an account

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] [Q] Restrict RCON sessions to local host only

Afternoon everyone,

I should like to have the Xonotic server on port 26000 reject all rcon connections from all IP addresses except This way rcon commands could only be sent from the localhost.

This stops cracking attempts on server.
This restricts access to locally logged in users (which shall send commands via ssh scripts ).
Makes me feel safer Smile (Subjective as ever)

Alternatively, is there an implementation of rcon/xenotic that uses SSL+client certificates?


PS. Is there an rcon command to change the server game from e.g ctf to kh ?

The command for game types is gametype.

And no, there is no way to restrict rcon to localhost without inspecting the packets I think. You'll need to mod the engine to check the source IP for that.

If you can manage to hide the rcon password from the shell script users (by having the scripts be SUID xonotic and read the pw somewhere hidden?), just set it to something very complex...

There is AES crypto but I don't think it's used for rcon auth.


I have only enabled the restictive rcon command, but did add gametype to the list and restarted the service.

However the command was rejected.:
server denied rcon access to

I passed these as values to rcon:
gametype kh

For those who read this thread eons later, then the actual format is :

'gametype kh'

E.g full command is:
rcon_address= rcon_password=XXXXXXXXXXXX /usr/local/xonotic/server/ 'gametype kh'

There is currently no certificate-based rcon, but the password is still not sent in plain by rcon protocol.

Limiting rcon to a specific source IP range sounds like a good idea, but is currently not possible yet.
BRLOGENSHFEGLE (core dumped)

The Bot Orchestra is back! | Xoylent Easter Egg | 5bots1piano
My music on Google Play and SoundCloud

Hi divVerent,

Thanks for the information.


Possibly Related Threads...
Thread Author Replies Views Last Post
  Local LAN Xonotic game server player Stats animatedjay 3 2,980 11-23-2018, 12:38 AM
Last Post: BuddyFriendGuy
Thumbs Up rcon and bots billyjoe 3 2,141 04-13-2017, 12:08 PM
Last Post: billyjoe
  Host custom maps on Google Drive sgtsob 3 2,863 10-27-2016, 12:05 AM
Last Post: sgtsob
  using rcon with ${....} TheGoodGamer 6 4,378 05-24-2015, 02:51 AM
Last Post: TheGoodGamer
Brick Shell script to execute rcon commands Melanosuchus 0 5,951 06-05-2014, 04:17 PM
Last Post: Melanosuchus
  Another RCON IRC bot Melanosuchus 5 5,774 04-27-2014, 02:10 PM
Last Post: Melanosuchus
  rcon command resets bots, gamtype etc. darkzun 12 8,536 10-03-2013, 02:01 PM
Last Post: Mr. Bougo
  Looking for a company to host Xonotic for me tbutlerPBL 2 2,900 08-10-2013, 05:41 AM
Last Post: roxservers
  How do I host a single map on a hosted Windows Server tbutlerPBL 19 12,968 07-22-2013, 03:38 PM
Last Post: Mr. Bougo
  [WIP] Xon_Rcon - In-Game Rcon Tool sqamsqam 12 10,576 06-20-2013, 12:20 PM
Last Post: Mr. Bougo

Forum Jump:

Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-