Maybe this will be of help to you.
http://cubebot.bots-united.com/cube/masterserver.cgi
I think it's what you need for your own masterserver, just need to install the required perl modules on your webserver.
http://cubebot.bots-united.com/cube/masterserver.cgi
I think it's what you need for your own masterserver, just need to install the required perl modules on your webserver.